Fix expression evaluator to allow user specified functions.