Made the segments act as a tre (with other segments as parents and children, and set the first segment in a story to have a parent_id of -99 so that we know to look for the story instead.