The scrapFromFile function now actually uses the filename paramter