Add functions to kernel