private [ "_less_loaded_HC", "_previous_min_load", "_hc_stats"];

_less_loaded_HC = objNull;
_previous_min_load = 99999;

if ( isMultiplayer ) then {
	if ( !isNil "group_owners" && !(isNil "HC1" && isNil "HC2" && isNil "HC3") ) then {
		{
			if (!isNil "HC1") then {
				if (!isNull HC1) then {
					if ( _x select 0 == HC1 ) then {
						if ( ( _x select 4) + ( _x select 5 ) < _previous_min_load ) then {
							_previous_min_load = ( _x select 4) + ( _x select 5 );
							_less_loaded_HC = HC1;
						};
					};
				};
			};

			if (!isNil "HC2") then {
				if (!isNull HC2) then {
					if ( _x select 0 == HC2 ) then {
						if ( ( _x select 4) + ( _x select 5 ) < _previous_min_load ) then {
							_previous_min_load = ( _x select 4) + ( _x select 5 );
							_less_loaded_HC = HC2;
						};
					};
				};
			};

			if (!isNil "HC3") then {
				if (!isNull HC3) then {
					if ( _x select 0 == HC3 ) then {
						if ( ( _x select 4) + ( _x select 5 ) < _previous_min_load ) then {
							_previous_min_load = ( _x select 4) + ( _x select 5 );
							_less_loaded_HC = HC3;
						};
					};
				};
			};

		} foreach group_owners;
	};
};

_less_loaded_HC