N-gram generation and Hashing changes.