Fixed bug in MovingAverage, and added random fallback