Added frequency to band conversion function