The Statute of Westminster (1931) gave Canada legislative independence from the United Kingdom. Canada requested that the British North America Acts (the written portions of the Constitution of Canada) be exempted from the statute because the federal and provincial governments could not agree upon an amending formula for the Acts. Negotiations between Ottawa and the provinces were finally successful in 1981, allowing Canada to patriate its constitution by passing the "Canada Act 1982", which included the "Constitution Act, 1982" and the Charter of Rights and Freedoms, and finally established an amending formula for the Canadian Constitution. These constitutional changes had the consent of all provincial governments except Quebec's.