Deduping of queued commands