Make number of channels configurable.