Adding position detection for n-grams.