Reformat scripts