Added pattern extractor