Added example if you must use globals