Added simple parenthesis handling