MIAMI (CBSMiami) – A former American Airlines mechanic charged with trying to destroy a plane was sentenced Wednesday to 37 months in prison.

Abdul-Majeed Marouf Ahmed Alani, 60, pleaded guilty to a federal charge of attempted destruction of an aircraft.

READ MORE: 2 Hialeah Police Officers Arrested, Charged With Official Misconduct, Falsifying Public Records

Alani super glued a foam substance onto a plane that was scheduled to depart Miami International Airport for the Bahamas.

READ MORE: Broward County Schools Superintendent Robert Runcie Arrested, Charged With Perjury

That plane exhibited an error reading on its computer, which led to an aborted take-off.

MORE NEWS: Former Sen. Bill Nelson Testifies At Senate Confirmation Hearing For NASA’s Top Job

Alani, who is originally from Iraq, is a naturalized U.S. citizen who had been an airline mechanic for 30 years.