Broken. Global state and side effects. Checkpointing.
Revert "Broken. Global state and side effects. Checkpointing."

This reverts commit 6a38e237f7ac949e7a9db0fc5d38b7e8357054c2.
Potential fix.
Merge pull request #815 from cschroed-usgs/CCH-1117

Cch 1117