[core] Bug Fix for channel numbers. Added a new function for this.