Getty Images
Now playing
02:52
American Airlines mechanic accused of attempted sabotage
Officer Genae Cook w/ IMPD
WISH
Officer Genae Cook w/ IMPD
Now playing
01:49
Police hold press conference as multiple shot in Indianapolis
WASHINGTON, DC - JUNE 13: Rep. Michelle Lujan Grisham (D-NM) speaks during a news conference on immigration to condemn the Trump Administration's "zero tolerance" immigration policy, outside the US Capitol on June 13, 2018 in Washington, DC. (Photo by Toya Sarno Jordan/Getty Images)
Toya Sarno Jordan/Getty Images
WASHINGTON, DC - JUNE 13: Rep. Michelle Lujan Grisham (D-NM) speaks during a news conference on immigration to condemn the Trump Administration's "zero tolerance" immigration policy, outside the US Capitol on June 13, 2018 in Washington, DC. (Photo by Toya Sarno Jordan/Getty Images)
Now playing
02:39
Governor settles with former campaign staffer who accused her of sexual mistreatment
Former Minneapolis Police officer Derek Chauvin chooses not to testify at his trial on April 15. Sitting to his left is defense attorney Eric Nelson.
Pool
Former Minneapolis Police officer Derek Chauvin chooses not to testify at his trial on April 15. Sitting to his left is defense attorney Eric Nelson.
Now playing
02:10
Derek Chauvin invokes 5th Amendment right at trial
Rep. Matt Gaetz, R-Fla., questions witnesses during a House Armed Services Committee hearing on Capitol Hill, Wednesday, April 14, 2021, in Washington.
Manuel Balce Ceneta/AP
Rep. Matt Gaetz, R-Fla., questions witnesses during a House Armed Services Committee hearing on Capitol Hill, Wednesday, April 14, 2021, in Washington.
Now playing
02:59
Women detail late-night parties with Gaetz
Pool
Now playing
06:07
Fauci fires back at Rep. Jim Jordan during heated exchange
President Joe Biden arrives to speak from the Treaty Room in the White House on Wednesday, April 14, 2021, about the withdrawal of the remainder of U.S. troops from Afghanistan.
Andrew Harnik/Pool/AP
President Joe Biden arrives to speak from the Treaty Room in the White House on Wednesday, April 14, 2021, about the withdrawal of the remainder of U.S. troops from Afghanistan.
Now playing
02:44
See Biden make historic announcement on US troops in Afghanistan
Avril Haines
POOL
Avril Haines
Now playing
01:09
DNI director gives two primary theories of where Covid-19 transmitted initially
THE BACHELORETTE - Fan favorite Becca Kufrin captured America's heart when she found herself at the center of one of the most gut-wrenching Bachelor breakups of all time. Now the Minnesota girl next door returns for a second shot at love and gets to hand out the roses, searching for her happily-ever-after in the 14th edition of ABC's hit series "The Bachelorette," premiering MONDAY, MAY 28 (8:00-10:01 p.m. EDT), on The ABC Television Network. (ABC/Craig Sjodin)
COLTON
Craig Sjodin/ABC
THE BACHELORETTE - Fan favorite Becca Kufrin captured America's heart when she found herself at the center of one of the most gut-wrenching Bachelor breakups of all time. Now the Minnesota girl next door returns for a second shot at love and gets to hand out the roses, searching for her happily-ever-after in the 14th edition of ABC's hit series "The Bachelorette," premiering MONDAY, MAY 28 (8:00-10:01 p.m. EDT), on The ABC Television Network. (ABC/Craig Sjodin) COLTON
Now playing
01:24
Former 'Bachelor' star says he is gay
american airlines plane preparations summer travel muntean pkg vpx_00000000.png
american airlines plane preparations summer travel muntean pkg vpx_00000000.png
Now playing
03:10
American Airlines prepares for summer travel demand surge
Family Photo/Getty Images
Now playing
04:11
Former officer charged with 2nd-degree manslaughter in Daunte Wright killing
Pool
Now playing
03:02
Use-of-force expert says Chauvin's actions were 'justified'
CNN
Now playing
01:06
Dr. Gupta: Johnson & Johnson vaccine pause will fuel hesitancy
CNN
Now playing
02:02
Daunte Wright's mom emotionally recounts her son's death
Barbers from King's Cutz give haircuts indoors while observing COVID-19 safety restrictions on March 13, 2021 in Los Angeles, California.
Mario Tama/Getty Images
Barbers from King's Cutz give haircuts indoors while observing COVID-19 safety restrictions on March 13, 2021 in Los Angeles, California.
Now playing
01:43
US consumer prices increased in March
screengrab japan fukushima daiichi
IAEA
screengrab japan fukushima daiichi
Now playing
02:31
Japan plans to release treated Fukushima water into sea
BROOKLYN CENTER, MINNESOTA - APRIL 12: Demonstrators face off with police officers outside of the Brooklyn Center police station on April 12, 2021 in Brooklyn Center, Minnesota. People have taken to the streets to protest after Daunte Wright, a 20-year-old Black man, was shot and killed by Brooklyn Center police officer Kimberly Potter during a traffic stop yesterday.  (Photo by Scott Olson/Getty Images)
Scott Olson/Getty Images
BROOKLYN CENTER, MINNESOTA - APRIL 12: Demonstrators face off with police officers outside of the Brooklyn Center police station on April 12, 2021 in Brooklyn Center, Minnesota. People have taken to the streets to protest after Daunte Wright, a 20-year-old Black man, was shot and killed by Brooklyn Center police officer Kimberly Potter during a traffic stop yesterday. (Photo by Scott Olson/Getty Images)
Now playing
01:14
Protests break out over the shooting of Daunte Wright

Correction: Earlier versions of this story misspelled the last name of Marlene Fernandez-Karavetsos, a spokeswoman for the US Attorney's office in the Southern District of Florida.

(CNN) —  

A mechanic for American Airlines appeared in court Friday after he was accused of trying to sabotage a commercial airliner shortly before it was set to take off from Miami International Airport for the Bahamas with 150 people on board.

Abdul-Majeed Marouf Ahmed Alani has been charged with “willfully damaging, destroying, disabling, or wrecking an aircraft, and attempting to do so,” according to a criminal complaint filed in federal court.

Alani allegedly tried to damage or disable the aircraft’s air data module (ADM) system, which reports aircraft speed, pitch and other critical data, on July 17.

On Thursday, investigators interviewed Alani and he “admitted that he accessed the ADM” and that he “inserted a piece of foam into the ADM’s inlet where the line connects and that he applied super glue to the foam so as to prevent the foam from coming off,” the complaint says.

“Alani stated that his intention was not to cause harm to the aircraft or its passengers,” investigators say in the complaint.

The court documents say Alani told investigators that he was upset over a contract dispute between union workers and the airlines, and the dispute had cost him money.

Alani allegedly explained that he tampered with the aircraft so he could get overtime working on the plane.

As the plane went down the runway and pilots increased power to the engines, there was an error related to the ADM system and the takeoff was aborted.

The aircraft returned to the concourse and no one on board was injured, the complaint says.

American Airlines mechanics immediately inspected the aircraft and “discovered a loosely connected pitot tube, which connects directly to the ADM” and determined “the ADM appeared to have been deliberately obstructed with what appeared to be a dark Styrofoam-type material,” according to the complaint.

Authorities used surveillance video to identify Alani, the document says.

No formal plea was entered during Friday’s court hearing. A bond hearing was set for Wednesday.

The federal government has until September 20 for a grand jury to return an indictment. Alani’s public defender, Anthony Natale, has just been assigned the case. “We won’t know until the 20th what the formal charges will be.”

American Airlines, in a statement to CNN, said, “At American we have an unwavering commitment to the safety and security of our customers and team members and we are taking this matter very seriously. At the time of the incident, the aircraft was taken out of service, maintenance was performed and after a inspection to ensure it was safe the aircraft was returned to service. American immediately notified federal law enforcement who took over the investigation with our full cooperation.”

An airline spokesman said Alani has been suspended.

Alani previously worked for Alaska Airlines.

A spokesman for the airline said Alani “was an avionics technician and line avionics technician for the company. He worked for Alaska from January to August 1990, and then again from June 1998 to July 2008. Alaska does not comment on specific personnel matters of past and present employees.”

In a lawsuit Alani filed in 2010, he acknowledged he was fired from Alaska.

According to an American Airlines spokesman, Alani had worked for American since 1988. American acknowledged that he worked for both airlines, which was permitted.

CNN’s Rene Marsh, Greg Wallace and Mark Morales contributed to this report.