Move code to the console file