Initial working version. Fixes #66.