Proof of concept.

Proof of concept written in 247 lines!

Obviously not a "perfect" script but, works none the less.
will work on it later.