Adding ref lookups