Adding some debug printing.