A compound having Formula Va or Vb: ** Formula ** or a pharmaceutically acceptable salt thereof, wherein: ring B is a condensed 5 or 6 membered aryl or heteroaryl group; Q1 is O, S, NH, CH2, CO, CS, SO, SO2, OCH2, SCH2, NHCH2, CH2CH2, CH>; = CH, COCH2, CONH, COO, SOCH2, SONH, SO2CH2 or SO2NH; Q2 is O, S, NH, CH2, CO, CS, SO, SO2, OCH2, SCH2, NHCH2, CH2CH2, CH>; = CH, COCH2, CONH, COO, SOCH2, SONH, SO2CH2 or SO2NH; Cy is aryl, heteroaryl, cycloalkyl or heterocycloalkyl, each optionally substituted with 1, 2, 3, 4 or 5-W-X-Y-Z; R1 and R2, together with the C atom to which they are attached, form a 3, 4, 5, 6 or 7 membered cycloalkyl group or a 3, 4, 5, 6 or 7 membered heterocycloalkyl group, each optionally substituted with 1, 2 or 3 R5; R5 is halogen, C1-6 alkyl, C2-6 alkenyl, C2-6 alkynyl, C1-4 haloalkyl, aryl, cycloalkyl, heteroaryl, heterocycloalkyl, CN, NO2, ORa, SRa, C (O) Rb, C (O) NRcRd, C (O) ORa, OC (O) Rb, OC (O) NRcRd, NRcRd, NRcC (O) Rd, NRcC (O) ORa, S (O) Rb, S (O) NRcRd, S (O) 2Rb or S (O) 2NRcRd; W, W 'and W' 'are each, independently, absent, they are C1-6 alkylenyl, C2-6 alkenylenyl, C2-6 alkynylenyl, O, S, NRe, CO, CS, COO, CONRe, OCONRe, SO, SO2, SONRe or NReCONRf; wherein said C1-6 alkylenyl, C2-6 alkenylenyl, C2-6 alkynylenyl are each optionally substituted with 1, 2 or 3 halogens, OH, C1-4 alkoxy, C1-4 haloalkoxy, amino, C1-4 alkyl amino or dialkyl C2-8-amino; X, X 'and X' 'are each, independently, absent, they are C1-8 alkylenyl, C2-8 alkenylenyl, C2-8 alkynylenyl, aryl, cycloalkyl, heteroaryl, heterocycloalkyl, arylalkyl, cycloalkylalkyl, heteroarylalkyl, heterocycloalkylalkyl, arylalkyl, aryl cycloalkylalkenyl, heteroarylalkenyl, heterocycloalkylalkyl, arylalkyl, cycloalkylalkyl, heteroarylalkyl, heterocycloalkylalkyl, each of which is optionally substituted with one or more halogens, CN, NO2, OH, C1-4 alkoxy, C1-4 haloalkoxy, amino, -amino or C2-8-amino dialkyl; And, Y 'and Y' are each, independently, absent, are C1-6 alkylenyl, C2-6 alk