It would be best to make it work without globals, and make sure they are always disabled. I've seen some amusing bugs caused by globals