Code Review

I'd namespace these global variables.  It's good practice and you only pollute the global namespace with a single variable.