Add patterns by Roberto.
Change order of patterns
Expand mass edits and make it work with R code.