ANKARA, Turkey (AP) — A court ordered the arrest of the pilot of a plane that crashed earlier this month at an Istanbul airport killing three passengers, on charges of “involuntary manslaughter and causing injury,” Turkey’s state-run news agency said Monday.

The Pegasus Airlines Boeing 737 ran off the runway at Istanbul’s Sabiha Gokcen airport on Feb. 5, crashed into a ditch and broke apart while landing in bad weather. Some 180 passengers and crew members were injured in the crash that saw passengers scramble through the split fuselage to escape.

Anadolu Agency said prosecutors investigating the crash interrogated the pilot following his discharge from a hospital where he had been treated. A court in Istanbul later ordered the pilot, identified only as M.A., arrested pending trial, Anadolu said.

Prosecutors have taken statements from air traffic control staff, airport employees and the pilots of two other planes that aborted landings shortly before the Pegasus flight landed.

The crash happened as the 11-year-old aircraft landed in strong winds and heavy rain. U.S. aviation investigators have also inspected the wreckage to see if there were any technical factors that could have contributed to the accident.

Pegasus has had several recent instances of overshooting runways.

Another Pegasus Airlines plane skidded off the runway at the same airport on Jan. 7, causing the temporary closure of the airport. There were no injuries.

In January 2018, another Boeing 737 in the Pegasus fleet slid off a runway at Trabzon Airport in northeastern Turkey. The plane came to rest in the dirt above the Black Sea with its nose pointed toward the water. No one was injured.