Check names rather than objects.