MINNEAPOLIS (AP) - A federal judge has ordered that a Minnesota man remain held until his trial on charges he tried to travel to Syria to join the Islamic State group.

Mohamed Abdihamid Farah appeared in court Thursday for a detention hearing. He's charged with four counts, including conspiracy to support a foreign terrorist group. Prosecutors say he faces up to 53 years in prison if convicted.

Farah was one of six men arrested in April in an alleged plot to travel to Syria.

Chief U.S. District Judge Michael Davis ordered Farah detained until trial. Davis said there was no combination of release conditions that would guarantee public safety.

Prosecutors filed a document Wednesday saying Farah went to extraordinary lengths to travel overseas, including making two attempted trips.