Merge Kernel and Generator