Revamped parsing of values - appears to work with parentheses, methods and calculations.