Fixes #6

The `setup` variable should be reset each time the process function is called. Fixes #6 (opened by me).