Tiny changes to RingBuffer.