Code to disable mods at runtime, or other times.