Kernel creation and release