Fixes #6
Merge pull request #7 from andyperlitch/reset_state_on_process

Fixes #6