Added flag to evaluation function.