Change to support unbalanced parenthesis