Would a mapping hash be easier to implement?