Reformatted code to fit the overall layout.