You either use global variables or pass them as parameters.