Unify evaluate api (see #22).