What was the regnal name of the Duke of York