Thanks for the reply. Well, I find it very weird that it resets. It doesn't feel right having such a local variable, and it resets. Something beyond my understanding.
Thanks for the suggestion, I thought of that too. I just wanted to keep the project clean and use a local variable only in this scope, but well, oh yeah.