Persist data

Closes #29