A compound, wherein the compound is represented by Formula Ib: or a pharmaceutically acceptable salt thereof, wherein: W is -NR a R b, -C O R 4, -C N R a R b, or - HetAr; A is a bond from C to W, -(CH 2) f CH( R 1)(CH 2) g -, -(CH 2) f C( R a R b)(CH 2) g -, -(CH 2 CH 2 O) h (CH 2) t -, -(CH 2) t (OCH 2 CH 2) h -, -(CH 2) t N( R e)CH 2 CH 2 Z, or or, in the alternative, A and W combine to form R 1 is -H, -(CH 2) n CH 3, -CH(CH 3)CH 2 CH 3, -CF 3, -CH 2 ( Ar), -CH 2 ( HetAr), -CH 2 S m CH 3, -CH 2 CH 2 S m CH 3, -CH 2 (CH 2) n N R c R d, -CH 2 OH, -CH(CH 3)OH, or -(CH 2) t COOH; R 2 is -H, -CH 3, -OH, or -CF 3; each of R a and R b is independently R e; or, in the alternative, R a and R b, together with the nitrogen or carbon atom to which they are attached, combine to form a 4 to 7-memebered ring heterocyclic ring which optionally contains additional heteroatoms selected from O, N R g, and S m; R c is -H, -CH 3, -(CH 2) n CH 3, -CH( R 2)CH 3, -CH 2 -pyridyl, or CH 2 -imidazolyl; R d is -H, -CH 3, or -(CH 2) n CH 3; or, in the alternative, R c and R d, together with the nitrogen atom to which they are attached, form a 4-7 membered heterocyclic ring which optionally contains additional heteroatoms selected from O, N R e, and S m; each R e is independently -H, -(CH 2) n CH 3, -CH(CH 3) 2, -CH(CH 3)CH 2 CH 3, -(CH 2 CH 2 O) p R 3, or CH 2 HetAr; each R g is independently -H, -(CH 2) n CH 3, -CH(CH 3) 2, -CH(CH 3)CH 2 CH 3, -(CH 2 CH 2 O) p R 3, -CH 2 -phenyl or -CH 2 -phenyl optionally substituted with F, Cl, -CH 3, -OCH 3, -OCF 3, or HetAr; each R 3 is independently -H, -CH 3, -CH 2 CH 2 -OH, or -CF 3; each R 4 is independently -H or -(CH 2) n N R c R d; each HetAr is independently a heteroaryl group optionally selected from pyridyl, pyrimidyl, C-imidazolyl and N-imidazolyl; D is CH or N; Q is -O-, -N R a -, -S m -, or -CH W -; each k is independently 1, 2, 3 or 4; each u is independently 1, 2 or 3; each v is independently 1, 2 or 3; each p is independently 1 or 2; each f is independently 0, 1 or 2; each g is independently 0, 1 or 2; each h is independently 1 or 2; each n is independently 0, 1, 2, 3, or 4; each m is independently 0, 1 or 2; each of q 1 and q 2 is independently 0, 1, 2 or 3; each s is independently 0, 1, 2 or 3; and each t is independently 0, 1, 2 or 3. W is -NR a R b, -C O R 4, -C N R a R b, or - HetAr; A is a bond from C to W, -(CH 2) f CH( R 1)(CH 2) g -, -(CH 2) f C( R a R b)(CH 2) g -, -(CH 2 CH 2 O) h (CH 2) t -, -(CH 2) t (OCH 2 CH 2) h -, -(CH 2) t N( R e)CH 2 CH 2 Z, or or, in the alternative, A and W combine to form R 1 is -H, -(CH 2) n CH 3, -CH(CH 3)CH 2 CH 3, -CF 3, -CH 2 ( Ar), -CH 2 ( HetAr), -CH 2 S m CH 3, -CH 2 CH 2 S m CH 3, -CH 2 (CH 2) n N R c R d, -CH 2 OH, -CH(CH 3)OH, or -(CH 2) t COOH; R 2 is -H, -CH 3, -OH, or -CF 3; each of R a and R b is independently R e; or, in the alternative, R a and R b, together with the nitrogen or carbon atom to which they are attached, combine to form a 4 to 7-memebered ring heterocyclic ring which optionally contains additional heteroatoms selected from O, N R g, and S m; R c is -H, -CH 3, -(CH 2) n CH 3, -CH( R 2)CH 3, -CH 2 -pyridyl, or CH 2 -imidazolyl; R d is -H, -CH 3, or -(CH 2) n CH 3; or, in the alternative, R c and R d, together with the nitrogen atom to which they are attached, form a 4-7 membered heterocyclic ring which optionally contains additional heteroatoms selected from O, N R e, and S m; each R e is independently -H, -(CH 2) n CH 3, -CH(CH 3) 2, -CH(CH 3)CH 2 CH 3, -(CH 2 CH 2 O) p R 3, or CH 2 HetAr; each R g is independently -H, -(CH 2) n CH 3, -CH(CH 3) 2, -CH(CH 3)CH 2 CH 3, -(CH 2 CH 2 O) p R 3, -CH 2 -phenyl or -CH 2 -phenyl optionally substituted with F, Cl, -CH 3, -OCH 3, -OCF 3, or HetAr; each R 3 is independently -H, -CH 3, -CH 2 CH 2 -OH, or -CF 3; each R 4 is independently -H or -(CH 2) n N R c R d; each HetAr is independently a heteroaryl group optionally selected from pyridyl, pyrimidyl, C-imidazolyl and N-imidazolyl; D is CH or N; Q is -O-, -N R a -, -S m -, or -CH W -; each k is independently 1, 2, 3 or 4; each u is independently 1, 2 or 3; each v is independently 1, 2 or 3; each p is independently 1 or 2; each f is independently 0, 1 or 2; each g is independently 0, 1 or 2; each h is independently 1 or 2; each n is independently 0, 1, 2, 3, or 4; each m is independently 0, 1 or 2; each of q 1 and q 2 is independently 0, 1, 2 or 3; each s is independently 0, 1, 2 or 3; and each t is independently 0, 1, 2 or 3.