Added NUM_BUCKETS constant.