@SnowUserDev, i didn't mention about the state change condition because you already know that condition to apply. Avoid current.update(); Thanks for marking helpful. 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution