Changed evaluate function.