Snapshoting current state.