Added search by pattern.