Reformatting script