By the end of last week, the congressional negotiators tasked with averting another painful government shutdown seemed on their way to reaching an agreement, and President Donald Trump seemed likely, even if begrudgingly, to sign whatever they offered.

But talks hit a roadblock over the weekend. Democrats agreed to allow that some money, though not the full amount Trump wanted, could go toward physical barriers at the southern border, but in exchange, they wanted caps on how many immigrants could be detained at the border.

This latest breakdown comes with just days until funding runs out again for about 25 percent of the federal government if Congress does nothing. No matter what happens, Trump has already strongly suggested that he will declare some kind of national emergency and move money around to put toward the construction of his border wall. At this point, he’s taken a hands-off approach because he wants Congress to bear the responsibility.

So with the Friday deadline looming for a deal, here are the various ways this could all end.

– They make a deal: No one wants another government shutdown. While the White House talks a big game about the possibility of letting it happen, there is no political benefit to President Trump of allowing a shutdown, save for satisfying his most ardent anti-immigrant supporters. The shutdown was deeply unpopular, economically harmful and Trump shouldered most of the blame for it. In this scenario, both sides come to an agreement that they can live with, perhaps even with a promise to take a harder look at immigration outside the government funding process. This will only happen if the pressure not to shut down the government is stronger than their desire to win.

– They open everything except DHS: The Democrats had broached this idea during the last shutdown. Because border security falls under the purview of the Department of Homeland Security (DHS), why not fund all the other unrelated departments and keep negotiating over DHS’s budget. While that would save a lot of federal workers and contractors the heartache of more missed paychecks and uncertainty, the agencies within DHS are the ones that caused the most consternation. Those include the Transportation Security Administration, FEMA, the Coast Guard, and Customs and Border Protection. It would still be a major strain if people employed by those agencies are forced to work without pay for an undetermined length of time.

– They buy themselves more time: If congressional leaders can stomach it, they could pass yet another clean continuing resolution to allow them a few more weeks to keep negotiating on a larger deal. It’s hard to imagine anyone agreeing to this unless a deal is very, very close, and a couple more days are needed to reach the finish line. If talks are still at an impasse by the end of the week, it’ll be a hard sell that another few weeks will change anything.

– They shut down the government : A week ago, this would have seemed highly unlikely with or without a deal from the congressional negotiators. But here we are, once again, talking about the government shutting down by end of day Friday. Even the auspices of another shutdown is enough to send those impacted last time into a state of high anxiety. Could Congress really let Friday come and go without doing anything to stop another shutdown? And if the government shuts down again, to what end?