Adjusted debug printing.