Added a trace to the evaluate function.