N Grams partially working