The country has largely untapped reserves of both crude oil and natural gas. While agriculture accounted for 56 percent of the economy in 1986, with coffee as its main export, it has now been surpassed by the services sector, which accounted for 52 percent of GDP in 2007. In the 1950s, the British colonial regime encouraged some 500,000 subsistence farmers to join co-operatives. Since 1986, the government (with the support of foreign countries and international agencies) has acted to rehabilitate an economy devastated during the regime of Idi Amin and the subsequent civil war.