Get/set global values confusion