Added closing parenthesis for if statement in Resize function.