Trying to get first run working. Checking to see if Kernel can be called inside a function