A San Francisco-bound flight with United Airlines from Australia was diverted to New Zealand because of an unruly passenger who berated the flight crew and other passengers with derogatory slurs, according to a passenger onboard.

Neil Kay of San Francisco told The Associated Press that the man became outraged when two men he was seated in-between spoke over him on the New Year’s Day flight.

“That was it. That was what set him off and he jumped up and started screaming,” Kay said. “The veins in his neck were bulging.”

Get Breaking News Delivered to Your Inbox

The 42-year-old American citizen was detained by police in New Zealand while other arrangements were made to get him back to America, reports CBS San Francisco.

The outbursts continued for several hours - at one point the man began pulling soda cans from the drink cart - before the crew decided to turn the plane around and land in Auckland, Kay said.

Videos Kay shot that were posted to New Zealand media outlets showed the man cursing, sweating profusely while on his phone and telling a flight attendant, “Do you know how cool it would be to have the airplane turned around cause of me?” before he made a disparaging comment about her weight.

United spokeswoman Erin Benson would only say the flight was diverted because a passenger failed to follow crew instructions. She said authorities in New Zealand met the man on the plane.

The six-hour ordeal wasn’t without an upside. As they waited to board their flight back to San Francisco, Kay celebrated the New Year with his fellow passengers with a glass of champagne.

The passengers were put up in a hotel overnight, before the flight continued to San Francisco from Auckland on Monday afternoon.