Added the deleteOriginals and replaceTerms options