Removed unecessary window reference