Modified the buffers so that they are resizable.