Ignore duplicates in history