Added id-ref lookup.