Save state functionality

It might be better to have the stats update in response to the `SAVE_COMPLETED` event below. The save operation  shouldn't have to care about stats.