The name derives from the distinction between types of licence which could be granted—a distinction now repealed in England and Wales, and repealed in Scotland in 2009. In England and Wales, the magistrates would formerly grant either an "off" licence permitting the sale of intoxicating liquor for consumption only off the premises, or an "on" licence permitting sale for consumption on the premises—which permitted, to a limited extent, off sales too: many public houses were permitted "off sales", to sell sealed alcoholic drinks (e.g., unopened bottles of wine) for consumption elsewhere. A "restaurant licence" was an on-licence with a restaurant condition attached. Until 2009, in Scotland the types of licence were "Hotel", "Public House", "Restricted Hotel", "Restaurant", "Entertainment", "Off-Sale", and "Refreshment" licences. In Northern Ireland, there are numerous types of licence.