Changed dat_freqs from float to double.