Don't use global variable, it is not really needed.
You only need it once in the monitor, create it there and propagate where needed.