Ah I see, might it be a better idea to declare a variable in the library and set it with a global function?