Initial commit.  Forked this from Alex Vinyar's original.