Using ordered dict to maintain loading order