Formatted code with Astyle.