Now accepting another parameter to check if we should clear timer or not

Now accepting another parameter to check if we should clear timer or not
We are also clearing timer during init