Snatched auich_set_rate() function.