Getting state.