Interfaces to flush, shelve and unshelve.
Fixes #37.