Add general bucketed cs01 function