The raw gas is then piped to a gas processing plant where the initial purification is usually the removal of acid gases (hydrogen sulfide and carbon dioxide). There are several processes available for that purpose as shown in the flow diagram, but amine treating is the process that was historically used. However, due to a range of performance and environmental constraints of the amine process, a newer technology based on the use of polymeric membranes to separate the carbon dioxide and hydrogen sulfide from the natural gas stream has gained increasing acceptance. Membranes are attractive since no reagents are consumed.