Rigid foam boards used to insulate buildings can prevent energy loss, making homes more efficient at keeping warm or cool. The advantages in energy efficiency, however, are undercut by environmental concerns over polystyrene products. Blowing agents used in foam production, such as hydrocarbons and hydrofluoroolefins, end up in the atmosphere and contribute to global warming.