Added some part of kernel code