Code to raise the probe before retraction is good, but the code should always raise the probe, not just when retracting