There are few things more frustrating than having your flight delayed. Something about it being totally out of your control can make you feel helpless. It is infuriating, and it’s one of the reasons airports are synonymous with stress.

Facing a massive delay on their flight, you would think these passengers would be livid. Their flight had already been diverted hundreds of miles away from its final destination. And if that wasn’t bad enough, they were now stuck in their seats while the plane sat on the tarmac. It’s an understatement to say that frustrations were mounting.

After delays and diverted flights, Delta Airlines was facing planes full of unruly passengers. They came up with an ingenious way to soothe their frustrations.

The planes’ original flight plans had them landing in Atlanta, but because of massive storms above Hartsfield-Jackson Atlanta International Airport, flight were to be diverted to other airports in the southeast, including Knoxville, Baton Rouge, and Greensboro. Once they landed, they would wait on the tarmac until the storm passed, then continue onto Atlanta.

They ended up waiting a lot longer than expected—several hours. Realizing they had planes full of restless passengers, the pilots decided to do something special. They ordered pizza for everyone on the flight, which was then carted out on a luggage transport vehicle to the idle planes.

The pilots of the flights organized a pizza party for all of the restless passengers onboard.

While it didn’t totally solve the problem, it made people feel a lot better about the wait.

It wasn’t long before tons of people on the flight started posting photos on social media about the impromptu pizza party. Delta received rave reviews from almost everyone who was on that flight. It’s a seemingly small gesture, but one that went a long way towards making people feel better.

Representatives at the airline said they were surprised by how much their passengers appreciated the “seemingly small gesture.”