No longer use 'unsafeWindow' anymore