Updated the code style and applied the style.