Structurally, sea foam is thermodynamically unstable, though some sea foam can persist in the environment for several days at most. There are two types of sea foam categorized based on their stability: 1) Unstable or transient foams have very short lifetimes of only seconds. The bubbles formed in sea foam may burst releasing aerosols into the air, contributing to sea spray. 2) Metastable foams can have a lifetime of several hours to several days; their duration is sometimes attributed to small particles of silica, calcium, or iron which contribute to foam stability and longevity. Additionally, seawater that contains released dissolved organic material from phytoplankton and macrophytic algae that is then agitated in its environment is most likely to produce stable, longer-lasting foam when compared with seawater lacking one of those components. For example, filtered seawater when added to the fronds of the kelp, Ecklonia maxima, produced foam but it lacked the stability that unfiltered seawater provided. Additionally, kelp fronds that were maintained in flowing water therefore reducing their mucus coating, were unable to help foam form. Different types of salt are also found to have varying effects on bubble proximity within sea foam, therefore contributing to its stability.