anchor.diff:  			throw(multiple_service_credit_control_avp_not_available)
   	end,
   	{UsedType, UsedUsage} = case USU of
  -		#'diameter_cc_app_Used-Service-Unit'{'CC-Time' = UsedCCTime} when UsedCCTime =/= [] ->
  +		#'diameter_cc_app_Used-Service-Unit'{'CC-Time' = [UsedCCTime]} when UsedCCTime =/= [] ->
   			{seconds, UsedCCTime};
  -		#'diameter_cc_app_Used-Service-Unit'{'CC-Total-Octets' = UsedCCTotalOctets,
  -					'CC-Output-Octets' = UsedCCOutputOctets, 'CC-Input-Octets' = UsedCCInputOctets} when
  +		#'diameter_cc_app_Used-Service-Unit'{'CC-Total-Octets' = [UsedCCTotalOctets],
  +					'CC-Output-Octets' = [UsedCCOutputOctets], 'CC-Input-Octets' = [UsedCCInputOctets]} when
   				is_integer(UsedCCTotalOctets), is_integer(UsedCCInputOctets), is_integer(UsedCCOutputOctets) ->
   			{octets, UsedCCTotalOctets};
   		[] ->
  
positive.code: 	{UsedType, UsedUsage} = case USU of
  		#'diameter_cc_app_Used-Service-Unit'{'CC-Time' = CCTime} when CCTime =/= [] ->
  			{seconds, CCTime};
  		#'diameter_cc_app_Used-Service-Unit'{'CC-Total-Octets' = CCTotalOctets,
  					'CC-Output-Octets' = CCOutputOctets, 'CC-Input-Octets' = CCInputOctets} when
  				is_integer(CCTotalOctets), is_integer(CCInputOctets), is_integer(CCOutputOctets) ->
  			{octets, CCTotalOctets};
  		[] ->
  
negative.code: 			throw(multiple_service_credit_control_avp_not_available)
  	end,
  	{ReqUsageType, ReqUsage} = case RSU of
  		#'diameter_cc_app_Requested-Service-Unit'{'CC-Time' = [CCTime]} when
  				CCTime =/= [] ->
  			{seconds, CCTime};
  		#'diameter_cc_app_Requested-Service-Unit'{'CC-Total-Octets' = [CCTotalOctets]} ->
  			{octets, CCTotalOctets};
  		#'diameter_cc_app_Requested-Service-Unit'{'CC-Output-Octets' = [CCOutputOctets],
  				'CC-Input-Octets' = [CCInputOctets]} when is_integer(CCInputOctets),
  				is_integer(CCOutputOctets) ->
  			{octets, CCOutputOctets + CCOutputOctets};
  		_ ->
  			throw(unsupported_request_units)
  	end,
  