Corrected search for kernels and non-kernels.