In 1997 and 1998, Indonesia was the country hardest hit by the . This increased popular discontent with the New Order and led to popular protests. Suharto resigned on 21 May 1998. In 1999, East Timor voted to leave the state of Indonesia, after a twenty-five-year military occupation. After Suharto's resignation democracy improved. A regional autonomy program was introduced, and the first direct presidential election took place in 2004. But some political and economic instability has remained. A political settlement to an armed separatist conflict in Aceh was achieved in 2005.