A system is provided for delivering a flow of breathing gas to an airway of a patient. The system includes a pressurizing flow module that generates a pressurized flow of breathing gas and a patient circuit coupled to the pressurizing flow module configured to communicate the flow of breathing gas to an airway of a patient. The system includes a sensor for monitoring a characteristic of a breathing pattern of the patient a controller that communicates with the sensor configured to increase a fraction of inspired carbon dioxide if the characteristic exceeds an upper threshold value and to provide servo-ventilation if the characteristic is less than a lower threshold value. The upper threshold value and the lower threshold value are changed based on the monitored characteristic of the breathing pattern of the patient.