Added method to get channel from frequency