Optimized comparisons.