Added code to enable threaded scraping