Added debug information for printing