Shanties had antecedents in the working chants of British and other national maritime traditions, such as those sung while manually loading vessels with cotton in ports of the southern United States. Shanty repertoire borrowed from the contemporary popular music enjoyed by sailors, including minstrel music, popular marches, and land-based folk songs, which were then adapted to suit musical forms matching the various labor tasks required to operate a sailing ship. Such tasks, which usually required a coordinated group effort in either a pulling or pushing action, included weighing anchor and setting sail.