Add do_rate(), cancel_rate() API methods.