Collapse duplicates and clean up
Remove sample