Added the ability to check the top window.