Add exponential averaging to delayMs