Adds back bucketing. Writing the buckets to a new file.