This global can be removed, see the comments below.