He was selected as one of the four representatives sent by the Scottish church to the Westminster Assembly in London which produced the Westminster Confession of Faith in 1647 as the foundation of the Presbyterian church.