Added checks to make sure the mods are loaded before loading the integration