House of Hanover. Until the Union of Parliaments, the Scottish throne might be inherited by a different successor after Queen Anne, who had said in her first speech to the English parliament that a Union was "very necessary". The Scottish Act of Security 1704, however, was passed after the English parliament, without consultation with Scotland, had designated Electoress Sophia of Hanover (granddaughter of James I and VI) as Anne's successor, if Anne died childless. The Act of Security granted the Parliament of Scotland, the three Estates, the right to choose a successor and explicitly required a choice different from the English monarch unless the English were to grant free trade and navigation. Next the Alien Act 1705 was passed in the English parliament designating Scots in England as "foreign nationals" and blocking about half of all Scottish trade by boycotting exports to England or its colonies, unless Scotland came back to negotiate a Union. To encourage a Union, "honours, appointments, pensions and even arrears of pay and other expenses were distributed to clinch support from Scottish peers and MPs". Scottish perspective The Scottish economy was severely impacted by privateers during the 1688–1697 Nine Years' War and the 1701 War of the Spanish Succession, with the Royal Navy focusing on protecting English ships. This compounded the economic pressure caused by the Darien scheme, and the seven ill years of the 1690s, when 5–15% of the population died of starvation. The Scottish Parliament was promised financial assistance, protection for its maritime trade, and an end to economic restrictions on trade with England. The votes of the Court party, influenced by Queen Anne's favourite, the Duke of Queensberry, combined with the majority of the Squadrone Volante, were sufficient to ensure passage of the treaty. Article 15 granted £398,085 and ten shillings sterling to Scotland, a sum known as The Equivalent, to offset future liability towards the English national debt, which at the time was £18 million, but as Scotland had no national debt, most of the sum was used to compensate the investors in the Darien scheme, with 58.6% of the fund allocated to its shareholders and creditors. The role played by bribery has long been debated; £20,000 was distributed by the Earl of Glasgow, of which 60% went to James Douglas, 2nd Duke of Queensberry, the Queen's Commissioner in Parliament. Another negotiator, Argyll was given an English peerage. Robert Burns is commonly