Changed evalCandidates to local variable.