Change the check to be global.