Functionality in external class. Bi/Trigram ready.