Improved performance of no117.
Reformat code.