Add ring_buffer