Moved all code below the functions inside of the if __name__ == '__main__' statement.