Added ability to change directory.