Thanks for the input. I have the State stuff in another module. Apparently as rob_au pointed out there are (now standard) modules that already deal with this so I'm going to take a look at them before I make any more wheels. I do like the easy lookup functionality of this though.