Make sure global variable setting does not affect anything else