Updates to dereplicate

Removed dead threading code