A bi-level pressure support system (30) and method of treating disorderedbreathing that optimizes the pressure delivered to the patient duringinspiration and expiration to treat the disordered breathing while minimizingthe delivered pressure for patient comfort. The pressure generating system(32) generates a flow of breathing gas at an inspiratory positive airwaypressure (IPAP) during inspiration and at an expiratory positive airwaypressure (EPAP) during expirations. A controller (50)monitors at least one ofthe following conditions: (1) snoring, (2) apneas, (3) hypopneas, or (4) a bigleak in the pressure support system and adjusts the IPAP and the EPAPindependently based on the occurrence of any one of these conditions.