The captain of a Dallas-bound American Airlines flight treated his passengers to 40 pizzas after their flight was diverted to Wichita Falls.

Flight 2354 took off Thursday from Los Angeles for DFW International Airport, but stormy weather forced the plane to land at Wichita Falls Regional Airport just before 6 p.m., the Wichita Times Record News reported.

With passengers waiting curbside for instructions, the pilot — who CNN identified as Jeff Raines — purchased 40 pizzas. A video posted on Twitter by airport employee Josh Raines shows the pilot scamper toward a waiting Papa John's delivery car to collect the pies.

"What a guy," someone can be heard saying before the pilot returned to hand them out to the plane's 159 passengers.

According to CNN, the captain later extended credit to his crew members, who took care of other arrangements for the stranded passengers, including booking hotel rooms, re-booking flights and serving beverages.

A spokesman for the Fort Worth-based airline told the news station: "We are always proud of our crew members who take great care of our customers who fly on American Airlines and are fortunate that they are the best in the business."