Use prepare function for the new kernels.