See description.

Fixes issue #2