Contains a lot of core code for my other mods