Remove duplicates.  Also some experiments in progress.