Added code to loop through the request to set the HCID