Add function that can distinguish kernels.