Added functionality to collate all responses and send data back to the requester.