Renamed gear_context to gear_state.