Deduplicating, extracting most recent values