Draft in progress (not tested at all) set_freq().