Update GlobalFunctions.sh