Modify buffer controll logic.