Fixed type-o using '=' rather than '==' in if statement.