Use a queue to hold the latest segment of data and average them.