South Sudan will restart pumping oil in two weeks and will export it as soon as it's technically possible, in a deal to restart an oil industry that has been hamstrung by lingering tensions between the two Sudans, AP quoted the African Union as saying Tuesday. The agreement was signed by South Sudan and Sudan on Tuesday, according to the African Union. South Sudan, which broke away from Sudan in 2011, pumps its oil through pipelines that run through the north. In early 2012 South Sudan charged that Sudan was stealing its oil and then shut down its oil industry, a decision that crippled the government budgets of both countries. Since their 2011 division there has been fighting between the two countries, and threats to resume hostilities. International mediators have been working to keep the peace and get the sides to agree on financial terms to restart the flow of oil. South Sudan's Petroleum and Mining Minister Stephen Dhieu Dau told reporters in Juba after returning from Ethiopia on Tuesday that South Sudan's oil will reach the international market within four weeks. Officials from the two Sudans on Tuesday set a timetable to implement several oil-related agreements, including one for resuming oil exports, the African Union said. Accordingly, in the next two weeks the South Sudanese government will instruct oil companies to resume oil production while Sudan readies the facilities to process and transport crude. The oil deal is the result of months of on-and-off negotiations between the north and the south under the mediation of former South African President Thabo Mbeki. Last September, in a deal that eased tensions, the presidents of Sudan and South Sudan agreed on multiple economic and security agreements, including demilitarizing the border and resuming South Sudan's oil exports. Subsequent talks to implement the deals remained unsuccessful for months until Ethiopian Prime Minister Hailemariam Desalegn brought the two leaders to the Ethiopian capital, Addis Ababa, in January and urged them to speedily resolve their disagreements. Defense ministers from Sudan and South Sudan last Friday agreed on a timetable to pull back their troops to pave way for the establishment of a demilitarized zone. Both sides are expected to complete their troops' withdrawal by March 15, although they are still at odds over disputed areas including the contested Abyei region.