Initial work on a circular buffer