Some groundwork around the mod.