Removed chdir() call