Extended bucket function