Added support for parentheses and fixed EXP3 and EXP4