Added extra debug print statements