Wrote script as as an experiment in properly parsing the submission data