Added print statement in xdefine_phot