Serial ringbuffer