Reformat output