A "blood money" deal to free a CIA contractor who killed two Pakistani men removes a major thorn in relations between the United States and Pakistan, but bruising from the dispute and disagreements over Afghanistan mean the alliance will likely remain stormy.
The already weak Pakistani government has also seen its standing among the country's 180 million people further diminished, though it remains to be seen whether right wing and Islamist parties can to organize large-scale protests to destabilize it further.
Raymond Allen Davis was released Wednesday after heirs of his victims were given $2.34 million in exchange for a pardon in a closed court session. He shot and killed the men on Jan. 27 in the eastern city of Lahore, allegedly in self-defense.
The deal was a way out of a toxic situation for the U.S. and Pakistani governments, which were able to say it was the families and Pakistan's legal system _ not them _ that allowed the release. As such, they were sheltered from the full force of Pakistani public anger.
The complex relationship between Pakistan and the United States is increasingly strained over strategic interests in Afghanistan. Many analysts said the crisis generated by the Davis affair was largely a reflection of these tensions.
"This was a bump along the road," said Samina Ahmed of the International Crisis Group, an international think tank.
"The bigger issue, which still remains, is that of Afghanistan."
The United States wants Pakistan to crack down on Afghan Taliban factions sheltering on its soil to enable it to quickly withdraw troops from Afghanistan. But Pakistan has resisted because it believes the militants could be allies when the Americans leave and help ensure that Afghanistan is not an ally of its long-term enemy, India.
The United States insisted all along that Davis had diplomatic immunity, but Pakistani officials never confirmed this.
Tensions were most acute between the CIA and Pakistan's main spy agency, the Inter Services Intelligence, whose cooperation is seen as key to defeating al-Qaida.
Davis' arrest was embarrassing for the ISI, which was criticized for either allowing _ or being unaware of _ his presence in the country. Critics and conspiracy theorists said Davis was one of many covert CIA operatives in Pakistan, undermining its sovereignty.
One ISI official said the agency backed the deal after CIA Director Leon Panetta assured his Pakistani counterpart that it would declare all operatives and contractors in Pakistan. U.S. officials said only the two men spoke.
"I have a feeling that the relationship between the ISI and the CIA has been redefined as a result of this incident," said former army general and military analyst Gen. Talat Masood. "The ISI must have insisted that the CIA stop operations in Pakistan without their knowledge and extend their tentacles to a point where it is embarrassing and impinges on the country's sovereignty."
Few facts were ever released about what Davis was doing in Lahore, as well as the identities of his victims. Some reports said they were robbers; others that they were known to him, or possibly even ISI operatives themselves.
The obfuscation continued with the deal to free him.
U.S. Secretary of State Hillary Rodham Clinton said the United States did not pay the money. Another U.S. official said Pakistan, which receives billions from the U.S. each year, paid the families but that Washington expects the bill.
U.S. officials welcomed the Davis release, and spoke of moving on.
Pakistan is the main transit route for supplies to international forces in Afghanistan. The Obama administration has been tring to strengthen Pakistan's cooperation in Afghanistan, as well turn the screws on al-Qaida leaders in the northwest.
"Neither country could afford for this tragedy to derail our vital relationship," Sen. John Kerry said after Davis was released. "We look forward to working with Pakistan to strengthen our relationship and confront our common challenges."
The government did not comment on Davis' release, while the main opposition party _ which controls Lahore _ was forced to deny any connection to the deal _ a politically toxic link.
Right wing and Islamist parties vowed to protest, with their main rallying cry being that the families were forced into accepting the money. The relatives themselves have not been seen since the court case, and do not answer their phones.
Small groups of protesters took to the streets in major cities over the past two days. Several dozen burned an effigy of Davis in the southern city of Karachi on Thursday, while hundreds in other places marched and chanted anti-American slogans.
There were calls for larger protests Friday after noon prayers, and the U.S. announced that it would close its embassy in Islamabad and consulates in other parts of the country on Friday.
"Obviously militant organizations and right wingers will continue to exploit and target the government for selling out the country, but considering the relatives themselves have agreed, I think these protests will die down," said Masood, the analyst. "It doesn't make much sense, but they will try."