Adding ring_buffer.