Prevents duplicated messages.