Reformated legacy code.