At first glance, before other possibilities, "then calibrated" will work like GOTO; not like GOSUB.

I would suggest that you use "calibrated" as a subroutine with a "return" and change all "then calibrated" to "then GOSUB calibrated".

Then we can talk about the rest of the code.

------------------------