Why is this global variable necessary? If the variable is necessary, why is this function necessary, when all it does is return the variable?