A branching unit for delivering a respiratory gas of a subject is disclosed herein. The branching unit includes a first limb (102) for delivering an expiratory gas during an expiratory phase and a second limb (103) for delivering an inspiratory gas during an inspiratory phase. The branching unit also includes a third limb (104) connecting with the first limb and the second limb for delivering both said expiratory gas and said inspiratory gas and at least one port (108) for a medical appliance (300).