Fixed bug - not zeroing lead accumulator after wrapping around circular buffer.