Added a circular buffer.