Modify to add stoplist filtering.