Moved globals to their own file