Use hashes for key-values rather than a hand-rolled linked list