Syntax error in if statement fixed.