Added support for parentheses, closes #3