Added curly braces to if statements (6).