public function onBeforeSend()
    {
        $currentAmount = $this->rateLimitMax - $this->rateLimitRemaining;
        $currentFactor = $currentAmount / $this->rateLimitMax;

        // Perform slowdown if the factor is hit
        if ($currentFactor > $this->rateLimitFactor) {
            $this->slowdownRequests();
        }
    }