Added setFreq