Tidy up the script and get ready for submitting.