Modified kernel to provide parameters to the kernel