Check for duplicates etc