Allows the crawl function to recive a root element as a parameter, instead for searching the whole document