 On 7 June 1849, he was promoted to be brevet lieutenant-colonel and appointed deputy commissioner of Peshawar.The following November, in the capacity of political officer, he accompanied the forces sent under General Bradshaw into the Yusufzai country and was present at the capture of Pullee on the Swat border.Again in February 1850, in command of militia, he went with Sir Charles Napier to the forcing of the Kohat pass and guided him through that defile.