Move to namespace or (better) don't use global variables