Added an evaluate function.