Taking things out of the main.cxx and putting it in its own thing
Moving things out of main.cxx