Debug grouping and output.