Function _enableHotplugEvents