Formatted code according to my preferred coding style.