Small bug - averaging reading backwards to before first data point