Changed to accomodate a range of freqs