Update the State.