Reformats output