Added debugging print statements