Changed arrays to objects for parsed segments