An African Union envoy says Sudan’s ruling military council and the country’s pro-democracy movement have reached a power-sharing agreement, including a timetable for a transition to civilian rule.

Mohammed el-Hassan Labat said early Friday that both sides agreed to form a joint sovereign council that will rule the country for “three years or a little more.” The sides agreed to five seats for the military and five for civilians with an additional seat going to a civilian with military background.

The emerging deal could break weeks of political impasse since the military ousted autocratic President Omar al-Bashir in April.

Talks on a power-sharing agreement had collapsed when security forces razed a protest camp in Khartoum on June 3. Negotiations resumed earlier this week, after massive protests last weekend.

The talks follow massive protests last weekend in which tens of thousands of demonstrators flooded the streets of Sudan’s main cities in the biggest show of numbers since security forces cleared a sit-in outside the military headquarters last month. At least 11 people were killed in clashes with security forces, according to protest organizers.

The talks also capped intensive efforts by the AU and Ethiopia to bring the generals and the protesters back to the negotiating table.

The UN High Commissioner for Human Rights Michelle Bachelet on Wednesday had called on Sudanese authorities to lift restrictions on the internet and properly investigate all acts of violence and allegations of excessive use of force.

Over 250 people have been killed since an uprising erupted against al-Bashir in December, according to protest organizers. The military overthrew the longtime ruler in April but protesters remained in the streets, fearing the generals intended to cling to power or preserve some form of authoritarian rule.