Move init out of the main file