Completed the basics of the kernel