Add debug statements to troubleshoot missing circuit bug