Set state.