Add evaluation function.