Initial code commit. Pretty smelly, concept works. Must make it more concise.