 Complete the following phrase:  Wheler spent the early part of his career in the Mediterranean, eventually being promoted to command his own ships, and being particularly active against the Algerine and Salé pirates that infested the region. He went on to serve in British waters, and was knighted by King James II. Wheler remained in the navy after the Glorious Revolution and his continued good service led to the command of a squadron. He fought at 