Cleaning up the program