First working version

Woot woot woot.