Lookup before insert.