Changed to use every 5 data points