In response to the Iraqi push for control , Lt. Gen. Peter W. Chiarelli , the second in command in Iraq , developed a plan that envisions redeploying American combat units outside Baghdad and giving Iraqi units with American advisers primary responsibility for security in the city .