Introduce the ring buffer