Seeking to improve a rocky relationship, President Barack Obama and Pakistani Prime Minister Nawaz Sharif on Wednesday pledged cooperation on the security issues that have strained ties between the two nations. But the sources of the long-standing tensions did briefly bubble to the surface.

Speaking alongside Obama at the White House, Sharif said he raised the issue of American drone strikes during their two-hour meeting, “emphasizing the need for an end to such strikes.” For his part, Obama made no mention of drones, which have stoked widespread resentment in Pakistan where many believe the targeted strikes by the armed, unmanned aircraft kill large numbers of civilians.

Despite the Pakistani concerns, the U.S. has shown no indication it is willing to abandon the attacks, even though the number has dropped in the past couple of years. The Pakistani government secretly supported the strikes in the past, and U.S. officials claim some key leaders still do.

Wednesday marked the first time Obama and Sharif have met since the Pakistani leader took office in June. And the mere fact that the talks took place was seen as a sign of progress after a particularly sour period in relations between the security partners.

Obama acknowledged that there will always be some tension between the U.S. and Pakistan, but said he and Sharif agreed to build a relationship based on mutual respect.

“It’s a challenge. It’s not easy,” he said. “We committed to working together and making sure that rather than this being a source of tension between our two countries, it can be a source of strength.”

Tensions peaked in 2011 following the U.S. raid inside Pakistan that killed Osama bin Laden and the accidental killing of two dozen Pakistani troops in an American airstrike along the Afghan border that same year. But there have been recent signs of progress, with Pakistan reopening supply routes to Afghanistan that is closed in retaliation for the accidental killing of its troops. And ahead of Sharif’s visit, the U.S. quietly decided to release more than $1.6 billion in military and economic aid to Pakistan that was suspended in 2011.

Washington has warmly welcomed Sharif, who arrived on Sunday for his first visit to the U.S. capital since taking office. He dined with Secretary of State John Kerry and other top U.S. officials and was hosted at a breakfast meeting Wednesday at Vice President Joe Biden’s residence. Sharif’s wife was also the guest of honor at a tea and poetry reception hosted by first lady Michelle Obama and Jill Biden, the vice president’s wife.

A military honor guard also lined the driveway leading to the West Wing of the White House as Sharif arrived for his meeting with Obama.

Beyond drones, the other hot-button issues on the agenda for Wednesday’s meeting included plans for winding down the U.S.-led war in Afghanistan and the longstanding tensions between India and Pakistan.

Both leaders agreed on the need for a stable and secure Afghanistan after combat missions formally conclude there at the end of next year. The U.S. and Afghanistan are negotiating an agreement to keep some American troops in Afghanistan after 2014, but one unresolved issue — which is a deal breaker for the U.S. — is whether American military courts maintain legal jurisdiction over the troops.

U.S. officials have said the White House is looking to keep fewer than 10,000 troops on the ground after 2014 for counterterrorism and training purposes. Some Pakistani officials fear that a full American withdrawal could increase the flow of extremists across its border with Afghanistan.