Added checks for links that open in new windows.