Main code only runs if ran from Command Line