Add population algo and dedup