Replacement of OrderedDict