Almost forgot to copy over the gluck code that the paper references.
Tightening up some things.