Added debug printout messages when enabled