A compound of Formula: wherein: A is X 1 is CH or N; R 1 is -C NH 2, -C N(R 7) 2, -C N(R 8) 2, -NR 7 C R 8, -NR 7 C N(R 7) 2, NR 7 C N(R 8) 2, -NR 7 C N(R 9) 2; -C OR 7, -NR 7 C OR 7,-NR 7 C OR 8, -C NR 7 R 8, -C NR 7 C OR 7, -C NR 7 C NH 2, - C NR 7 C N(R 7) 2 or H; each R 2 is independently selected from H and C 1 -C 6 alkyl; each R 3 is independently selected from H, C 1 -C 6 alkyl, -CN, -C N(R 7) 2, -OR 7 and halo, or the two R 3 together with the C atom they are attached form a cyclopropyl group spiro attached to the pyrrolidine; or a R 2 and a R 3 together with the C atom they are attached form a cyclopropyl ring fused to the pyrrolidine; each R 4 is independently selected from H, halo, -OR 7, C 1 -C 6 alkyl, C 1 -C 6 alkyl substituted with 1-3 halo, C 1 -C 6 alkoxy substituted with 1-3 halo, -CN and -C N(R 7) 2; each R 5 is independently selected from H and C 1 -C 6 alkyl; each R 6 is independently selected from H, C 1 -C 6 alkyl, -CN, -OR 7 and halo; each R 7 is independently selected from H, C 1 -C 6 alkyl or C 1 -C 6 alkyl substituted with 1-3 -OH; each R 8 is independently selected from H, C 1 -C 6 alkyl, phenyl, benzyl, phenyl substituted with 1-3 groups independently selected from R 6, benzyl substituted with 1-3 groups independently selected from R 6, an unsubstituted 5-6 membered heterocycloalkyl having 1 to 2 heteroatoms independently selected from O and N, a 5-6 membered heterocycloalkyl having 1 to 2 heteroatoms independently selected from O and N which is substituted with 1-3 groups independently selected from R 6, an unsubstituted C 3 -C 6 cycloalkyl, a C 3 -C 6 cycloalkyl substituted with 1-3 groups independently selected from R 6, an unsubstituted 5-6 membered heteroaryl having 1 to 2 heteroatoms independently selected from O and N, a 5-6 membered heteroaryl having 1 to 2 heteroatoms independently selected from O and N which is substituted with 1-3 groups independently selected from R 6; each R 9 is a C 1 -C 6 alkyl and together with the N atom they are attached form an unsubstituted 5-6 membered heterocycloalkyl or a 5-6 membered heterocycloalkyl substituted with 1-3 groups independently selected from R 6; m is 0, 1, 2, 3 or 4, n is 0, 1 or 2, or a pharmaceutically acceptable salt thereof. A is X 1 is CH or N; R 1 is -C NH 2, -C N(R 7) 2, -C N(R 8) 2, -NR 7 C R 8, -NR 7 C N(R 7) 2, NR 7 C N(R 8) 2, -NR 7 C N(R 9) 2; -C OR 7, -NR 7 C OR 7,-NR 7 C OR 8, -C NR 7 R 8, -C NR 7 C OR 7, -C NR 7 C NH 2, - C NR 7 C N(R 7) 2 or H; each R 2 is independently selected from H and C 1 -C 6 alkyl; each R 3 is independently selected from H, C 1 -C 6 alkyl, -CN, -C N(R 7) 2, -OR 7 and halo, or the two R 3 together with the C atom they are attached form a cyclopropyl group spiro attached to the pyrrolidine; or a R 2 and a R 3 together with the C atom they are attached form a cyclopropyl ring fused to the pyrrolidine; each R 4 is independently selected from H, halo, -OR 7, C 1 -C 6 alkyl, C 1 -C 6 alkyl substituted with 1-3 halo, C 1 -C 6 alkoxy substituted with 1-3 halo, -CN and -C N(R 7) 2; each R 5 is independently selected from H and C 1 -C 6 alkyl; each R 6 is independently selected from H, C 1 -C 6 alkyl, -CN, -OR 7 and halo; each R 7 is independently selected from H, C 1 -C 6 alkyl or C 1 -C 6 alkyl substituted with 1-3 -OH; each R 8 is independently selected from H, C 1 -C 6 alkyl, phenyl, benzyl, phenyl substituted with 1-3 groups independently selected from R 6, benzyl substituted with 1-3 groups independently selected from R 6, an unsubstituted 5-6 membered heterocycloalkyl having 1 to 2 heteroatoms independently selected from O and N, a 5-6 membered heterocycloalkyl having 1 to 2 heteroatoms independently selected from O and N which is substituted with 1-3 groups independently selected from R 6, an unsubstituted C 3 -C 6 cycloalkyl, a C 3 -C 6 cycloalkyl substituted with 1-3 groups independently selected from R 6, an unsubstituted 5-6 membered heteroaryl having 1 to 2 heteroatoms independently selected from O and N, a 5-6 membered heteroaryl having 1 to 2 heteroatoms independently selected from O and N which is substituted with 1-3 groups independently selected from R 6; each R 9 is a C 1 -C 6 alkyl and together with the N atom they are attached form an unsubstituted 5-6 membered heterocycloalkyl or a 5-6 membered heterocycloalkyl substituted with 1-3 groups independently selected from R 6; m is 0, 1, 2, 3 or 4, n is 0, 1 or 2,