A core API used by many of my own mods.