Prosecutors in the Eastern District of New York have reached an agreement to allow a Chinese professor accused of helping to steal intellectual property for the Chinese telecom giant Huawei to return to his home country, they revealed in court Thursday.

Bo Mao was arrested and charged with conspiracy to commit wire fraud in August 2019 while working as a visiting professor at the University of Texas at Arlington. Prosecutors flagged the case for the court’s review early on after discovering that a U.S.-based subsidiary of Huawei was paying for Mao’s legal team, which included attorneys from Wilson Sonsini Goodrich & Rosati and Thompson & Knight. Mao waived the conflict, and his trial was set for 2021.