Added clause for if all gears categorized correctly.
Added check_gear_groups call.