TAMPA, Fla. (WFLA) — A man who threatened to “mess up the plane” was ordered by a judge to pay United Airlines more than $20,000, according to federal court documents.

Alexander Michael Dominic MacDonald, of England, was ordered on April 25 to pay the airline restitution totaling $20,738 after he pleaded guilty to one count of interfering with flight crew members and attendants. In addition to the payment, he was also ordered to be deported back to England by immigration officials.

MacDonald was arrested after he got into an argument on a flight from London to Newark in March, according to court documents. The flight was forced to land in Bangor, Maine, due to his disruptions. There were about 160 passengers and 10 crew members on board.

While the plane was in Canadian airspace, a flight attendant notified the pilot that MacDonald was being “physically combative” and “could not be kept restrained,” according to the documents.

The disruption began after MacDonald was yelling at his girlfriend near the back of the plane when a flight attendant asked him to lower his voice. He complied, but a few minutes later, he began yelling again — this time at a flight attendant.

When confronted, “the passenger would not listen and continued to be verbally and physically aggressive,” asking a crew member if he wanted to “have a problem” and threatened to “mess up the plane,” according to the complaint.

Another passenger helped a crew member get MacDonald restrained in flex cuffs, but after determining they couldn’t calm him down, they decided they had to land the plane for the safety of the crew.