Throughout the late 19th and 20th centuries, Marine detachments served aboard Navy cruisers, battleships and aircraft carriers. Marine detachments served in their traditional duties as a ship's landing force, manning the ship's weapons and providing shipboard security. Marine detachments were augmented by members of the ship's company for landing parties, such as in the First Sumatran expedition of 1832, and continuing in the Caribbean and Mexican campaigns of the early 20th centuries. Marines developed tactics and techniques of amphibious assault on defended coastlines in time for use in World War II. During World War II, Marines continued to serve on capital ships. They often were assigned to man anti-aircraft batteries.