Just 24 hours ago the Prime Minister was looking at a certain defeat in the meaningful vote on Brexit.

MPs are due in the division lobbies on Tuesday at 7pm.

The last vote on the Withdrawal Agreement delivered a humiliating defeat for Theresa May, losing by a record 230 votes in January.

This week's vote looked like a repeat performance until late last night when the PM met European commission president Jean Claude Juncker in Strasbourg.

May said she has legal assurances the UK cannot be held in the Irish backstop indefinitely.

The vote depends on the DUP - the story of her political life.

They are waiting to see what the attorney general's legal opinion of the updated deal is.

If Northern Irish MPs back it, then a number of Tory Brexiteer MPs are likely to follow them, which could be just enough to overturn that record defeat; but no-one in government is counting those chickens before they've hatched.

There could be amendments; most notably from the SNP.

The party's Westminster leader Ian Blackford wants MPs to note that Scotland voted to remain in the EU in the 2016 referendum and should not be taken out against its will. He is calling on the UK Government to accept the mandate in the Scottish Parliament to hold another independence referendum.

Even if it is taken only SNP MPs and possibly the Plaid Cymru and Green MPs would support it.

Labour say they will not press ahead with their bid for another EU Referendum, the so-called People's Vote immediately, even if the PM suffers another huge Commons defeat tonight. They could push for another confidence vote first, just as they did after the last meaningful vote.

So there will be a vote on Tuesday night - if May wins then we are heading for Brexit.

If she loses then MPs are expected to vote on Wednesday on whether leaving the EU without a deal, a no deal Brexit, should be ruled out.

On Thursday, or perhaps Wednesday, if MPs have rejected the PM's deal and rejected a no deal, MPs are expected to vote on extending Article 50.

They may well have to extend Article 50 even if the PM wins simply to get Brexit legislation through.

As things stand we are due to leave the EU a fortnight on Friday.