Added a is_init flag to the ringbuffer