Added chdir.