Unable to persuade the king to accept a Presbyterian settlement, the Scots exchanged him for half of the £400,000 they were owed by Parliament and returned home. Relations with the English Parliament and the increasingly independent English army grew strained and the balance of power shifted in Scotland, with Hamilton emerging as the leading figure. In 1647 he brokered the Engagement with the King, now held by the New Model Army, by which the Scots would support him, along with risings in England as part of a Second English Civil War, in exchange for the imposition of Presbyterianism on England on a three-year trial basis. The more hard-line Covenanters of the Kirk Party were defeated at a skirmish at Mauchline Muir in June 1648 and many Covenanters, including Alexander and David Leslie, declined to join the army of 10,000 produced for the Engagement. By the time Hamilton led the Engagement army across the border, most of the English risings been defeated. The Scots were caught by the New Model Army under Cromwell on the march between Warrington and Preston. In the Battle of Preston, the Scots were defeated and many captured, with Hamilton subsequently executed. After the coup of the Whiggamore Raid, the Kirk Party regained control in Scotland. However, the eventual response of Cromwell and the army leaders now in power in England to the second civil war was the execution of the king in January 1649, despite Scottish protests.