public function addBuckets($buckets) {
        if (is_array($buckets)) {
            $this->buckets = array_merge($this->buckets, $buckets);
        } else {
            $this->buckets[] = $buckets;
        }
    }