Almost working kernel