Setting up basic framework for mod.