adding time bucketing.