add latency average module