Allow dictionary to be passed as primary key