Reformat output of program