Do setup and cleanup

Closes #39