Weaning from mechanical ventilation.