Add debugging to GetCM API call