Add implementation in SetRates function

Add implementation in SetRates function