The energy content of waste products can be harnessed directly by using them as a direct combustion fuel, or indirectly by processing them into another type of fuel. Thermal treatment ranges from using waste as a fuel source for cooking or heating and the use of the gas fuel (see above), to fuel for boilers to generate steam and electricity in a turbine. Pyrolysis and gasification are two related forms of thermal treatment where waste materials are heated to high temperatures with limited oxygen availability. The process usually occurs in a sealed vessel under high pressure. Pyrolysis of solid waste converts the material into solid, liquid and gas products. The liquid and gas can be burnt to produce energy or refined into other chemical products (chemical refinery). The solid residue (char) can be further refined into products such as activated carbon. Gasification and advanced Plasma arc gasification are used to convert organic materials directly into a synthetic gas (syngas) composed of carbon monoxide and hydrogen. The gas is then burnt to produce electricity and steam. An alternative to pyrolysis is high temperature and pressure supercritical water decomposition (hydrothermal monophasic oxidation).