A system including methods and apparatus for treatment of a medical disorder such as obstructive sleep apnea or congestive heart failure. The system involves applying a gain to flow rate of pressurized gas delivered to a patient during inspiratory and/or expiratory phases of a respiratory cycle to deliver the pressurized gas in proportion to the respective gains during inspiration and/or expiration. A base pressure may be applied in addition to the gain-modified pressures and an elevated pressure profile may be employed to assist or control inspiration. The system may be fully automated responsive to feedback provided by a flow sensor that determines the estimated patient flow rate. A leak computer can be included to instantaneously calculate gas leakage from the system. The system may be utilized in connection with conventional continuous positive airway pressure treatments, such as CPAP or bi-level positive airway pressure equipment to effect various beneficial treatment applications.