Long text ready. Now we can work on the algo