The problem with global variables