Format compareAgentsResponse() and callback at right location