Attempt at preventing duplicates