Prevent duplicates from piling up option.

I added an extra option that the user can pass with a boolean to prevent the same message from piling up on the users screen.