Added Win detection