Use name and index for equality