 Complete the following phrase:  In 1801, he was promoted lieutet and joined the Royal Military College at Great Marlow. He was promoted captain in 1804, and, being pronounced fit for a staff situation, was appointed deputy-assistant quartermaster-general with the force sent to South America in 1806. His conduct was praised in despatches, and in 1807 he was nominated in the same capacity to the corps proceeding to Portugal under Sir Arthur Wellesley. He was present at the battle of Roliça and battle of Vimeiro. He advanced into Spain with Sir John Moore, and served with the 2nd division through the retreat from Salamanca and at the 