Support passing buffers