Until the early 1970s, Sudan's agricultural output was mostly dedicated to internal consumption. In 1972, the Sudanese government became more pro-Western and made plans to export food and cash crops. However, commodity prices declined throughout the 1970s causing economic problems for Sudan. At the same time, debt servicing costs, from the money spent mechanizing agriculture, rose. In 1978, the IMF negotiated a Structural Adjustment Program with the government. This further promoted the mechanised export agriculture sector. This caused great hardship for the pastoralists of Sudan (see Nuba peoples). In 1976, the Ansars had mounted a bloody but unsuccessful coup attempt. But in July 1977, President Nimeiry met with Ansar leader Sadiq al-Mahdi, opening the way for a possible reconciliation. Hundreds of political prisoners were released, and in August a general amnesty was announced for all oppositionists.