Prior to the siege he was occupied in improving the navigation of the Upper Douro to facilitate the transfer of supplies for the operations in Badajoz. On rejoining the army as a captain in 1813 he was employed in the examination of the fords of the Nive, held by the enemy's posts prior to the successful passage of that river. During the following campaign he was attached to the 2nd division, and was present at the battle of St. Pierre, near Bayonne, at the attack on the heights of Garres St.-Palais at Tarbes, and at the battles of Orthez and Toulouse. Soon after his return to England he was sent, in 1815, with General Keane, on the expedition against New Orleans, landed with the advance, and was present in the attack of the Americans, also at the assault made on the enemy's lines and at the siege of Fort Bowyer.