I have used @FragFather 's solution and it works great. I have done very similar to that initially but I had no idea how to cancel the timer but it seems adding another condition into the timer did the trick.