Improve debug printing.