Moved averaging to the acq thread, to cut down dramatically on inter-process communications overhead.