Working on buffer allocation automation
Buffer allocation automation wip.