Add name->index lookup table (and viceversa)