Tweaked ringbuffer iterator. Stats basic test passes.