A federal judge has ordered a Yemeni native, who is accused of trying to barge into the cockpit of a San Francisco-bound American Airlines flight, to remain in custody.

U.S. District Judge James Larson held a hearing on Friday to reconsider a defense request to grant bail to 28-year-old Rageh al-Murisi.

The New York man faces one count of interfering with the flight crew after allegedly trying to open the cockpit twice on a Sunday night flight from Chicago.

Witnesses said he repeatedly yelled “Allahu Akbar,” which means “God is great” in Arabic before being subdued by passengers and crew.

Al-Murisi’s lawyer has argued that he’s not a terrorist and that he is mentally unstable and needs treatment.

Photo Credit: From passenger Andrew Wai