Custom JIT and cleanup