Water Resources Management (WRM) in Chile is widely known for its 1981 Water Code—written after General Augusto Pinochet took control through a military coup d'état. Free-market mechanisms became the economic philosophy in WRM, including the development of water markets and tradable water permits. A major reform to the 1981 Water Code was signed in 2005 to address social equity and environmental protection concerns. Water resources management in Chile is shared among the private sector which provides investment for infrastructure and distribution, and agencies provide regulatory oversight, maintain records, and issue water rights. Chile is negotiating formalized agreements with both Bolivia and Argentina to manage shared resources and water storage projects. Chile is also supported in rural water supply with $150 million in loans by the World Bank and the Inter-American Development Bank. Chile has three distinct hydrological regions: The dry northern regions, including the Atacama Desert, one of the driest places on earth The central regions are temperate and support the largest population centers of Santiago and Valparaíso The sparsely populated southern provinces receive large quantities of rain and snow. There are a number of important rivers in Chile. The longest river in Chile, the Loa River, is located in the Atacama Desert. The largest river by volume, the Rio Baker is found in the Aysén Region, of Patagonia, and the Biobío, a source of hydropower, and the Maipo supplies Santiago with water. Water quality is quite good in Chile and is recognized for outstanding water supply and sanitation systems. The National Commission of the Environment (CONAMA) set a goal to treat 95% of wastewater by 2010. Point source pollution from mining effluent and nonpoint source agricultural runoff is a problem as untreated water discharges into lakes, rivers, and aquifers. Chile has improved in this area since the 1980 declaration to 'live in a pollution-free environment'. Chile has increased exports of fruits and wine requiring improvements and growth in irrigation technology and management. Future hydroelectric projects on the Baker River are in planning stages and should help Chile cope with its energy demands. Hydroelectric projects generate 40% of Chile's electricity. Copper mining is a major contributor to Chile's GDP and requires large volumes of water; thus creating contention between domestic uses for water and the needs to meet export demands of copper and fruits. Many glaciers exist in Chile and climate change is increasing the rate of melting. As melting