Simplified evalThresholds function.