Moved the script to a separate file. You know, good form.