Inclusion Criteria:  Mechanical Ventilation and ECMO Refractory Acute Respiratory Distress Syndrome or Refractory Cardiogenic Shock  Exclusion Criteria:  Contraindications for ECMO Contraindications for Closed Loop Ventilation Rejection of participation