The former Massachusetts Air National Guardsman accused of stealing and disseminating classified Pentagon records online is asking a federal judge to set him free and reverse a previous ruling that he remain in pretrial detention. The filing draws a direct comparison to former President Donald Trump, who remains free pending trial for his alleged mishandling of classified documents.

Attorneys for Jack Teixeira on Monday appealed the May detention order imposed by Magistrate Judge David H. Hennessy, asking the Massachusetts Federal District Court judge to reconsider Teixeira’s release, arguing the defendant is not a flight risk, poses no risk of obstruction of justice and can be released under certain conditions.