Pulled some things out of the main program.cs