Why would the logic depend on the ReferenceName of an unaligned record?