Working circular buffer