Source: How do I change the value of a global variable inside of a function