Added number of channels to the kernels.