Adding Bucketizing Logic