Adding more pointers and counters needed to implement proper read and write buffers.