Put all these variables here into a struct and just declare a single global struct of that type, which doesn't pollute the global namespace as much.