You haven't said if you are the designer of these modules, or are just using these modules. If you're the designer, please redesign. Global variables are generally
not a good idea, and you're starting to head down a treacherous area of heavy-duty coupling between these modules that will make life bad for you and your maintenance programmers.