First version of working code

A tad down and dirty first version. Don't use this for anything but
playing around ;)