The commander of U.S. forces in the Mideast tried to reassure worried lawmakers Wednesday that there will be an orderly withdrawal of troops from the war in Afghanistan -- not a rush for the exits starting July next year.

At a Senate hearing, Republican lawmakers questioned President Barack Obama's plan to start withdrawal of U.S. forces in July 2011. Senators complained that Afghans see that as the date they will be abandoned by the U.S.

"We are sounding an uncertain trumpet" about America's commitment to Afghanistan, said Republican Sen. John McCain.

Gen. David Petraeus said setting the July date was meant partly to pressure the Afghan government to work harder to provide services and reduce corruption, crucial to the military effort to defeat the insurgents.

Seated next to Petraeus, U.S. Department of Defense under secretary Michele Flournoy said Obama has not set a timeline for exactly how many troops will come home at any given point because the president believes that will depend on progress in the war.

Flournoy said the expectation is that the there will, indeed, be enough progress against the insurgency by next July to begin "a responsible drawdown," but that the actual numbers and pace will be determined by how it is going.