Use name instead of id in lookup table, as ids will clash with array indices.