 Complete the following phrase:  Once in the service of the Habsburgs, he distinguished himself in the Battle of Villaviciosa and in the thankless task of evacuation of Aragon in 1711. In recognition of his accomplishments, he was appointed supreme commander of the forces of Catalonia and was charged with organizing city defenses in the 1713-14 