Add some bucketing code and use it in dummy ui.