Threshhold step counter and moving average.