Some required classes and methods for mods.