Can now handle multiple windows. Maybe.