Moved all the console lines to the bottom of the script as I am unsure if they should go in between the variables.