Added multichannel support.