Hacked it together in perl.
Merge pull request #8 from Team-Combat-Wombat/dev-feature

Hacked it together in perl.