Commented out line showing how to use smoothing on the rate calculation