First kernel implementation. Not working though.