Made the commit buffer configurable via two variables and adding them into a new constructor