Prepare for custom kernels