Added a get_rate method