Modify a copy of a global variable