Generalize to n kernels