public function addThreshold($threshold, $driver)
    {
        if (!is_int($threshold) || $threshold <= 0) {
            throw new InvalidArgumentException("The threshold '{$threshold}' is invalid. The threshold must be an integer and greater than '0'.");
        }

        $this->sortThresholds[$threshold] = $driver;
    }