Could you fix the cosmetics here to match the rest of the code? Braces on separate line, no space in "else if", no braces for single line statements.