Committing current state.