Removed unnecessary index handling. Fixed bug in GetEnabledChannels.