Do not insert duplicate samples in the queue.