Improvements to deduplication