API: Better detection of repeated messages. Better handling of tags. (In a next step they will be included in the entities)