Added debug print statements