Changed evaluator core to use lambdas.