The federal judge who declared a mistrial in Michael Avenatti’s wire fraud case ordered the U.S. Department of Justice to give Avenatti copies of the forensic images of his law firm servers by noon Thursday.

Senior U.S. District Judge James Selna of the Central District of California has on three previous occasions denied Avenatti such access, but he reversed course Wednesday after hearing of millions of files that still need to be released to Avenatti. Avenatti said doing so will “also protect my rights” and likely prevent the issues that led to the mistrial.