 Complete the following phrase:  On 24 December 1812 he received a commission as an ensign in the 1st Battalion 1st Regiment of Foot Guards, and after mounting guard at St. Jamess Palace for a few months was sent with a detachment of his regiment to Spain. In 1813 he took part in the principal military operations in that country, and in the following year returned with his battalion to London. Here he became one of the dandies of the town, and was among the very few officers who were admitted at Almacks, where he remembered the first introduction of quadrilles and waltzes in place of the old reels and country dances. Wanting money to equip himself for his further services abroad, he obtained an advance of 200 from his agents, Cox  Greenwood, and going with this money to a gambling-house in St. Jamess Square, he won 600, with which he purchased horses and other necessaries. Sir Thomas Picton then took him out to Flanders as an honorary aide-de-camp but finding no employment for him, he was advised to join the 3rd battalion of his regiment and was subsequently present at 