Added more debugging print statements