First pass hackfest.  It actually works though.