Adding function to get frequency range.