Reformat code again for deleting all of tabs and adding line break around if/switch statement.