Reformatted whole code.