Rewind support

Resolves issue #2