First pass at replacing PDDictionary with a proper hash map.