Make CustomKernel Serializable