Reformat and add footer