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: Miami Man Faces Charges In Florida Keys After Fleeing From Police At More Than 100 MPH

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

READ MORE: Python Removal Program Grows In Southwest Florida

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

MORE NEWS: Tracking The Tropics: Hurricane Sam Continues To Intensify

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