Added routines for kernel