The presence of sea foam in the marine environment plays a number of ecological roles including providing sources of food and creating habitat. As a food source, sea foam with a stable composition is more important ecologically, as it is able to persist longer and can transport nutrients within the marine environment. Longer decay times result in a higher chance that energy contained in sea foam will move up the food web into higher trophic levels. In the Bay of Fundy for example, a tube-dwelling amphipod, Corophium volutator, can potentially attain 70% of its nutritional requirements from the sugars and amino acids derived from sea foam in its environment. At times however, the sea foam was found to be toxic to this species. It is thought that high concentrations of phenolics and/or the occasional presence of heavy metals or pesticides incorporated into the sea foam from the sea surface contributed to its toxicity. On the west coast of Cape Peninsula, South Africa, sea foam often occurs in nearshore marine areas with large kelp beds during periods of strong westerly winds. It is thought that the foam generated in these conditions is an important food source for local organisms due to the presence of organic detritus in the sea foam.