Changed how bindGlobal is implemented.