 Ugandan and Rwandan forces within Congo began to battle each other for territory, and Congolese Mai Mai militias, most active in the South and North Kivu provinces (in which most refugees were located) took advantage of the conflict to settle local scores and widen the conflict, battling each other, Ugandan and Rwandan forces, and even Congolese forces.The war was ended when, under Joseph Kabila's leadership, a ceasefire was signed and the all-inclusive Sun City (South Africa) talks were convened to decide on a two years transition period and the organisation of free and fair elections.Rwandan RPF troops finally left Congo in 2002, leaving a wake of disease and malnutrition that continued to kill thousands every month.