Added functionality of supporting parentheses.