Added implementation of KernelInvoker according to new spec