The invention relates to a compound of Formula I and methods of treating CFTR (cystic fibrosis transmembrane conductance regulator) mediated diseases, in particular cystic fibrosis, comprising the step of administering a therapeutically effective amount of a compound of Formula I or IA to a patient in need thereof: