Variable Passing

Nonsense, what you posted is junk. Instead of posting incorrect "skeleton" code (and a handwaving, word salad explanation) , post a small, complete example that actually compiles and demonstrates the problem. This is known as an MCVE. It doesn't have to be your full code, just a very small version that people can copy into the IDE, try for themselves, and observe the issue. Preferably, the problem will be demonstrated by the code printing results to the Serial Monitor.