Wrote the flux kernel. It doesn't work yet