Provided herein are novel heteroaryl compounds, pharmaceutically acceptable salts and pharmaceutical formulations thereof for selectively inhibiting serotonin reuptake and/or acting as 5-HT1A receptor agonists. Also provided herein are pharmaceutical compositions comprising the heteroaryl compounds and methods of using the pharmaceutical compositions in treating central nervous system (CNS) dysfunction in a mammal, especially a human being.