Why does this need to be global?