Removed BSOD from global scope