Dynamic row offsets

Fixes #16.