I'm told calling a main function makes for a more regular practice so changed it.