Accepting numChannels as argument.