Switched over to using OrderedDict instead of normal Dicts. Made template more readable.