Kenya's Deputy Prime Minister Uhuru Kenyatta appears to have won the presidential election by the tightest of margins, provisional results indicate.
After all the votes were counted he had polled 50.03% of the vote, 4,109 votes over the threshold required for outright victory.
The official result is not expected before 11:00 on Saturday (08:00 GMT).
Rival candidate Raila Odinga is set to file a legal challenge if he loses.
One of Mr Odinga's aides said the candidate had "no intention" of conceding defeat.
Salim Lone told the Daily Nation newspaper: "The level of the failures in the system makes it very difficult to believe it was a credible result, and if Uhuru is declared president, Raila will go to court."
Both candidates have complained of irregularities during the course of the count, since Monday's election.