Hash split

Fixes #104 and #97.