Added genereic FillLevelFunction in buffer