Updated for narrow windows.