Wrote the routine to build the jit function, God help me when I have to debug it