Adds debug printing