In many ways the Brexit deal agreed by Boris Johnson on Thursday is very similar to the one Theresa May failed three times to get through parliament.
But the revised withdrawal agreement includes a significant change that crucially could allow it to pass the Commons.
The prime minister has removed the Northern Ireland backstop from the treaty negotiated by his predecessor.
The backstop was an insurance policy struck with the EU that would have ensured, come what may in future trade talks, that the Irish border remained free flowing post-Brexit, avoiding the need for customs checks.
Activated if a wider trade deal failed to materialise before the end of the Brexit implementation period in December 2020, it would have seen the UK as a whole remain in the EU customs union.
It would also have seen Northern Ireland adhere to EU single market rules on goods again to rule out the necessity for border regulatory checks.
Critically, the deal’s detractors hated that there was no time-limit on the arrangements or a mechanism through which the UK could unilaterally exit them. This has now changed.
The revised protocol on Ireland/Northern Ireland negotiated by Johnson contains four key elements:
Regulations
Much the same as the backstop, Northern Ireland will remain aligned with single market regulations on goods.
Checks and procedures on such goods will take place at ports and airports in Northern Ireland and not on the border.
The UK authorities will therefore assume responsibility for applying the EU rules in Northern Ireland.
Custom duties
The UK will leave the EU customs union.
Northern Ireland will exit along with the rest of the UK, so it will be included in any future trade deals struck by the government after Brexit.
However, the region will remain an entry point into the EU’s customs zone.
That means UK authorities will apply UK tariffs to products entering Northern Ireland, but only if they are not earmarked for onward transportation across the border.
For goods at risk of entering the single market, the UK will collect EU tariffs on behalf of the bloc.
VAT
EU rules on value added tax and excise duties will apply in Northern Ireland, with the UK responsible for their collection.
However, revenues derived will be retained by the UK.
The UK will also be able to apply VAT exemptions and reduced rates in Northern Ireland that are applied in Ireland.
Consent
The arrangements will come into effect at the start of 2021 and, after an initial four-year period, Stormont Assembly members will vote whether to continue to apply them.
Significantly, that vote will be conducted on a simple majority head count and will not require the support of a majority of unionists and a majority of nationalists under the contentious “petition of concern” mechanism.
This means the DUP will not have the chance to exercise a veto.
If the vote is carried, the arrangements will be extended for another four years.
If it transpires that a majority of unionists and a majority of nationalists do ultimately vote in favour of the move, then the extension period will be for eight years.
If members vote to come out of the EU arrangements there would be a two-year cooling off period before that happened.