Added base kernel stuff, and the DelegateCall code.