Added evaluation function.