Updated

A Ugandan military spokesman says his government has signed an agreement with South Sudan extending Ugandan military presence there for four more months.

Maj. Henry Obbo said Wednesday that Uganda and South Sudan signed a memorandum of understanding on Tuesday in the Ugandan capital, Kampala.

Ugandan troops have been fighting alongside troops loyal to South Sudanese President Salva Kiir to put down a rebellion led by a former deputy president.

The Ugandan soldiers are based mostly in the capital, Juba, where they protect key sites such as the international airport. But their presence is opposed by rebel forces who say the Ugandans are an obstacle to peace and want them to leave the country.

South Sudan's warring factions have broken multiple agreements pledging a peaceful end to the conflict.