I am following this tutorial, and have added a scanning procedure. Once an object is detected, the scan loop breaks and reverts to the tracking mode from the tutorial. The issue