Add method to get the rate.