Added curly braces to if statements (7).