Added option to change directory