Moved conversion of array to objects back