Added debug printout