Use internal ordereddict