Removed unnecessary reordering of array since object states are now stored as dictionaries