Updated support for disabling modules.