Made index in circular buffer a Param