Adding an option to erase old messages from thread.
All test works.
It needs a big refactoring