Set windows boolean earlier