A Delta flight from New York City to Seattle had to make a stop in Billings after the plane’s toilets stopped working and passengers couldn’t hold it any longer.

A Delta Airlines jetliner departs from McCarran International Airport in Las Vegas on Wednesday, June 28, 2017. (Richard Brian/Las Vegas Review-Journal) @vegasphotograph

BILLINGS, Mont. — A Delta flight from New York City to Seattle had to make a stop in Billings after the plane’s toilets stopped working and passengers couldn’t hold it any longer.

The Billings Gazette reports that the direct flight diverted hundreds of miles south on Saturday to make the emergency bathroom stop.

Delta says that upon landing in Billings, the plane had to taxi to a cargo area because a gate was not available. Delta says ground crews rolled a stairway to the airplane so passengers could “disembark to find relief of built-up pressures.”

A flight from New York City to Seattle can take about six hours.