Improves parentheses management