customFreq should be in seconds