Buggy version of using a timer to snapshot