Cleans up output.