Added braces to If statements.  (Stupid that they are not there already)