Changed the structure so that segments now contain media objects