Split main method into its own file