Refine debug outputs.