Changes to start crawling from specified startDirectory.