Flowers are modified leaves possessed only by the angiosperms, which are relatively late to appear in the fossil record; the group originated and diversified during the Early Cretaceous and became ecologically significant thereafter.[85] Flower-like structures first appear in the fossil records some ~130 mya, in the Cretaceous era.[86] Colourful and/or pungent structures surround the cones of plants such as cycads and gnetales, making a strict definition of the term "flower" elusive.[69] The main function of a flower is reproduction, which, before the evolution of the flower and angiosperms, was the job of microsporophylls and megasporophylls. A flower can be considered a powerful evolutionary innovation, because its presence allowed the plant world to access new means and mechanisms for reproduction. The evolution of syncarps. a: sporangia borne at tips of leaf b: Leaf curls up to protect sporangia c: leaf curls to form enclosed roll d: grouping of three rolls into a syncarp The flowering plants have long been assumed to have evolved from within the gymnosperms; according to the traditional morphological view, they are closely allied to the gnetales. However, as noted above, recent molecular evidence is at odds to this hypothesis,[65][66] and further suggests that gnetales are more closely related to some gymnosperm groups than angiosperms,[64] and that ‹See Tfd›extant gymnosperms form a distinct clade to the angiosperms,[65][66][64] the two clades diverging some 300 million years ago.[87] Further information: Gnetophyta#Classification The relationship of stem groups to the angiosperms is important in determining the evolution of flowers. stem groups provide an insight into the state of earlier "forks" on the path to the current state. Convergence increases the risk of misidentifying stem groups. Since the protection of the megagametophyte is evolutionarily desirable, probably many separate groups evolved protective encasements independently. In flowers, this protection takes the form of a carpel, evolved from a leaf and recruited into a protective role, shielding the ovules. These ovules are further protected by a double-walled ‹See Tfd›integument. Penetration of these protective layers needs something more than a free-floating microgametophyte. Angiosperms have pollen grains comprising just three cells. One cell is responsible for drilling down through the integuments, and creating a conduit for the two sperm cells to flow down. The megagametophyte has just seven cells; of these, one fuses with a sperm cell, forming the nucleus of the egg itself, and another joins with the other sperm, and dedicates itself to forming a nutrient-rich endosperm. The other cells take auxiliary roles.[clarification needed] This process of "double fertilisation" is unique and common to all angiosperms. The inflorescences of the Bennettitales are strikingly similar to flowers In the fossil record, there are three intriguing groups which bore flower-like structures. The first is the Permian pteridosperm Glossopteris, which already bore recurved leaves resembling carpels. The Triassic Caytonia is more flower-like still, with enclosed ovules – but only a single integument. Further, details of their pollen and stamens set them apart from true flowering plants.