Updated the current state.