Insert the callback function in guardLoops into the parsetree so we don't get eval scope issues in some instances