A compound of Formula: or a pharmaceutically acceptable salt thereof, wherein: A and B are independently selected from provided that at least one of A and B is other than phenyl and provided that A-B is other than and Y is nitrogen or CH; Z is oxygen or sulfur; each R 24 is independently selected from hydrogen and halo; R 1 is selected from wherein p is 0 or 1; R 20 is selected from hydrogen and alkyl; R 21 is selected from hydrogen and alkyl; R 22 is hydrogen or -C R x; and R 23 is selected from hydrogen and alkyl, wherein the alkyl can optionally form a fused three- to six-membered ring with an adjacent carbon atom, wherein the three- to six-membered ring is optionally substituted with one or two alkyl groups; R 2 is hydrogen or -C R y; R x and R y are each independently selected from cycloalkyl, heteroaryl, heterocyclyl, alkoxy, and alkyl, said alkyl being substituted by one or more substituents independently selected from aryl, alkenyl, cycloalkyl, heterocyclyl, heteroaryl, -OR 3, -NR a R b, and -C NR c R d, wherein any said aryl and heteroaryl may optionally be substituted with one or more substituents independently selected from alkenyl, alkyl, haloalkyl, arylalkyl, heterocyclyl, heterocyclylalkyl, halogen, cyano, nitro, -C OR 4, OR 5, -NR a R b, (NR a R b)alkyl, and (MeO) P O-, and wherein any said cycloalkyl and heterocyclyl may optionally be fused onto an aromatic ring and may optionally be substituted with one or more substituents independently selected from alkoxy, alkyl, hydroxyl, halogen, aryl, -NR a R b, oxo, and -C OR 4; R 3 is hydrogen, alkyl, or arylalkyl; R 4 is selected from alkyl and arylalkyl; R 5 is hydrogen, alkyl, or arylalkyl; R a and R b are independently selected from hydrogen, alkyl, cycloalkyl, arylalkyl, heteroaryl, -C R 6, -C OR 7, -C NR c R d, and (NR c R d)alkyl, or alternatively, R a and R b, together with the nitrogen atom to which they are attached, form a five- or six-membered ring or bridged bicyclic ring structure, wherein said five- or six-membered ring or bridged bicyclic ring structure optionally may contain one or two additional heteroatoms independently selected from nitrogen, oxygen, and sulfur and may contain one, two, or three substituents independently selected from C 1 to C 6 alkyl, C 1 to C 4 haloalkyl, aryl, hydroxyl, C 1 to C 6 alkoxy, C 1 to C 4 haloalkoxy, and halogen; R 6 is alkyl; R 7 is alkyl, cycloalkyl, arylalkyl, or haloalkyl; and R c and R d are independently selected from hydrogen, alkyl, arylalkyl, and cycloalkyl. A and B are independently selected from Y is nitrogen or CH; Z is oxygen or sulfur; each R 24 is independently selected from hydrogen and halo; R 1 is selected from R 20 is selected from hydrogen and alkyl; R 21 is selected from hydrogen and alkyl; R 22 is hydrogen or -C R x; and R 23 is selected from hydrogen and alkyl, wherein the alkyl can optionally form a fused three- to six-membered ring with an adjacent carbon atom, wherein the three- to six-membered ring is optionally substituted with one or two alkyl groups; R 2 is hydrogen or -C R y; R x and R y are each independently selected from cycloalkyl, heteroaryl, heterocyclyl, alkoxy, and alkyl, said alkyl being substituted by one or more substituents independently selected from aryl, alkenyl, cycloalkyl, heterocyclyl, heteroaryl, -OR 3, -NR a R b, and -C NR c R d, wherein any said aryl and heteroaryl may optionally be substituted with one or more substituents independently selected from alkenyl, alkyl, haloalkyl, arylalkyl, heterocyclyl, heterocyclylalkyl, halogen, cyano, nitro, -C OR 4, OR 5, -NR a R b, (NR a R b)alkyl, and (MeO) P O-, and wherein any said cycloalkyl and heterocyclyl may optionally be fused onto an aromatic ring and may optionally be substituted with one or more substituents independently selected from alkoxy, alkyl, hydroxyl, halogen, aryl, -NR a R b, oxo, and -C OR 4; R 3 is hydrogen, alkyl, or arylalkyl; R 4 is selected from alkyl and arylalkyl; R 5 is hydrogen, alkyl, or arylalkyl; R a and R b are independently selected from hydrogen, alkyl, cycloalkyl, arylalkyl, heteroaryl, -C R 6, -C OR 7, -C NR c R d, and (NR c R d)alkyl, or alternatively, R a and R b, together with the nitrogen atom to which they are attached, form a five- or six-membered ring or bridged bicyclic ring structure, wherein said five- or six-membered ring or bridged bicyclic ring structure optionally may contain one or two additional heteroatoms independently selected from nitrogen, oxygen, and sulfur and may contain one, two, or three substituents independently selected from C 1 to C 6 alkyl, C 1 to C 4 haloalkyl, aryl, hydroxyl, C 1 to C 6 alkoxy, C 1 to C 4 haloalkoxy, and halogen; R 6 is alkyl; R 7 is alkyl, cycloalkyl, arylalkyl, or haloalkyl; and R c and R d are independently selected from hydrogen, alkyl, arylalkyl, and cycloalkyl.