Clean up the output.