Adding support for ringbuffer clearing.
wq