Made some changes to populate the MetaSegments