 Complete the following phrase:  Things changed with the opening of the Anglo-Spanish War, and the threat of a British invasion upon the viceroyalty. The viceroy Antonio de Olaguer y Feliú negotiated a pardon with his family, on the condition that he joined the Corps of Blandengues with a hundred men, to form a battalion. Thus, he began his military career in 1797, at age 33, with the rank of lieutet. The attack finally came in 1806, when William Beresford invaded Buenos Aires, in the 