Build state.