Added evaluation function to model builder