Fixed crawl() function