Reformatted code to be more uniform.