Using the Kernel object in the method change_kernel.