Added braces to scope if clauses.