Refine output.