Added framework for prebuffer