Single-instance lock.
WeightedMovingAverage.