Use an OrderedDict for links so that it maintians the order