Added ngram support.