First pass at the evaluation function.