Added ringbuffer size method