First stage setup of the mod.