Almost done with the ring buffer implementation (but still untested, so assumed