Update average and record on fly