Kernel for CS