Added bounds check to moving average limitation