Initial commit.  Functional, if not very safe.