Start using Buffer class to manage read and write buffers.