Removed chdir calls.