Yes, I will do this. I just wanted to avoid a global var. But I guess it's better.