I didn't understand what this variable is for. Seems more of a logic error to me.
If is a countdown usually I set the var in LeftSafeArea to "e.g." 10, then keep decrementing inside the repeat_timer
If the value is <= 0 then you should Stop the timer.