Changed to chunk the size of buffers