With both presidential candidates claiming victory in a hard-fought race, uncertainty and fears over possible violence by impatient supporters threaten to mar an otherwise peaceful election in Indonesia.
The government has appealed to both sides to hold off celebrations until after the official result which is expected to be released about two weeks after the election.
It is also possible that the official result itself - to be announced on July 21 or 22 - might still not end the matter, as the loser could bring his complaint to the Constitutional Court that he was unfairly robbed of victory. The court could take up to end-August to make a decision, according to political analysts.
The unofficial result using the 'quick count' method by several organisations - which have been used accurately to predict past legislative and presidential elections - showed that Jakarta governor Joko Widodo and his running mate Jusuf Kalla, a former vice president, had won by a narrow margin, of between 4 and 5 percentage points.