Complete the SetRates function