A custom kernel for M2(s)