Removed openWindow and closeWindow.