Update the stub and callback code to handle lazy compilation. The stub