Move init into separate file