Don't worry about your script. We have our test programs for this. We'll find the problem.

Until this is resolved, use the normal Entry variable for an entry stop, not your TMF.