Bucket merging and percentileHIgherIsBetter and percentileLowerIsBetter upgrades