The term "livery" originated in the specific form of dress worn by retainers of a nobleman and then by extension to special dress to denote status of belonging to a trade. Livery companies evolved from London's medieval guilds, becoming corporations under Royal Charter responsible for training in their respective trades, as well as for the regulation of aspects such as wage control, labour conditions and industry standards. Early guilds often grew out of parish fraternal organizations, where large groups of members of the same trade lived in close proximity and gathered at the same church. Like most organisations during the Middle Ages, these livery companies had close ties with the Catholic Church (before the Protestant Reformation), endowing religious establishments such as chantry chapels and churches, observing religious festivals with hosting ceremonies and well-known mystery plays. Most livery companies retain their historical religious associations, although nowadays members are free to follow any faith or none. Companies often established a guild or meeting hall, and though they faced destruction in the Great London Fire of 1666 and during the Blitz of World War II, thirty-nine companies maintain their sometimes elaborate and historic halls.