Add setter to the rate.