Add support to read/write buffers