Added multistagefilter for the entire data set.
Added different threshold possibilities.
Eliminated pattern duplication in extraction.