Holy crap, it works!  Need to write tests now.