Using ordered dictionary.