Adds conditionals for imports for unwanted modules.