Reformatted and removed duplicate lines