Add a kernel that can serve as middelware