Added print statements to help troubleshoot
Added print statements and counters to help troubleshoot