anchor.diff:  post_request_ecur(SubscriberIds, SvcContextId,
   		SessionId, MSCC, Location, Destination, final, a) ->
   	Path = get_option(nrf_uri) ++ get_ref(SessionId) ++ "/" ++ "release",
  -	ServiceRating = final_service_rating_b(MSCC, binary_to_list(SvcContextId),
  -			Location, Destination),
  +	ServiceRating = final_service_rating(MSCC, binary_to_list(SvcContextId),
  +			Location, Destination, a),
   	post_request_ecur1(SubscriberIds, SessionId, ServiceRating, Path);
   post_request_ecur(SubscriberIds, SvcContextId,
   		SessionId, MSCC, Location, Destination, final, b) ->
   	Path = get_option(nrf_uri) ++ get_ref(SessionId) ++ "/" ++ "release",
  -	ServiceRating = final_service_rating_b(MSCC, binary_to_list(SvcContextId),
  -			Location, Destination),
  +	ServiceRating = final_service_rating(MSCC, binary_to_list(SvcContextId),
  +			Location, Destination, b),
   	post_request_ecur1(SubscriberIds, SessionId, ServiceRating, Path).
   %% @hidden
   post_request_ecur1(SubscriberIds, SessionId, ServiceRating, Path) ->
  
positive.code: update_service_rating_b1([], _SCID, _SI, Acc) ->
  	Acc.
  
  -spec final_service_rating_b(MSCC, ServiceContextId,
  		Destination, ServiceInformation) -> ServiceRating
  	when
  		MSCC :: [#'3gpp_ro_Multiple-Services-Credit-Control'{}],
  		ServiceContextId :: string(),
  		ServiceInformation :: [tuple()],
  		Destination :: string() | undefined,
  		ServiceRating :: [{struct, [tuple()]}].
  %% Create list of service elements to be rated.
  final_service_rating_b(MSCC, ServiceContextId, undefined, ServiceInformation) ->
  	SCID = {"serviceContextId", ServiceContextId},
  	final_service_rating_b1(MSCC, SCID, ServiceInformation, undefined, []);
  final_service_rating_b(MSCC, ServiceContextId, ServiceInformation, Destination) ->
  	SCID = {"serviceContextId", ServiceContextId},
  	Des = {"destinationId", {array, [{struct, [{"destinationIdType", "DN"},
  			{"destinationIdData", Destination}]}]}},
  	final_service_rating_b1(MSCC, SCID, ServiceInformation, Des, []).
  %% @hidden
  final_service_rating_b1([#'3gpp_ro_Multiple-Services-Credit-Control'{
  		'Used-Service-Unit' = USU, 'Service-Identifier' = SI,
  		'Rating-Group' = RG} = _MSCC | T], SCID, SInfo, Des, Acc) ->
  	Acc1 = case SI of
  		[] ->
  			[];
  
negative.code: 		case reserved_unit(RSU) of
  			[] ->
  				ServiceRating = {struct, [SCID, {"requestSubType", "RESERVE"} | Acc4]},
  				initial_service_rating(T, SCID, SInfo, Des, Class, [ServiceRating | Acc]);
  			ReservedUnits ->
  				ServiceRating = {struct, [SCID, {"requestedUnit", {struct, ReservedUnits}},
  						{"requestSubType", "RESERVE"} | Acc4]},
  				initial_service_rating(T, SCID, SInfo, Des, Class, [ServiceRating | Acc])
  		end
  	end;
  initial_service_rating([], _SCID, _SI, _Des, _Class, Acc) ->
  