Use a circular buffer