Use read-write ring buffer