Circular buffer is implemented.