Re-arrange nested if-then-else statements
Replace TAB indents with spaces
Replace TAB indents with spaces
Replace TAB indents with spaces