An Illinois ethanol plant worker accused of emailing a bomb threat to his workplace will remain behind bars until trial after federal authorities revealed investigators found bomb-making files and a map of the facility during searches of his property.

Judge Ronald L. Hanna ordered Andrew M. Kozak, of Chillicothe, held without bond Friday. Hanna warned that the explosive found at BioUrja Renewables was a working device that could have killed people and caused major damage, shaped-charge explosives, a blasting cap well and a video about copper-based explosives, prosecutors told the court.

Investigators also found internet searches for videos of ethanol tank blasts and a 2023 investigation into an industrial ethanol plant explosion.

According to 25News, prosecutors tied Kozak to the warning email sent to BioUrja employees — which carried the subject line "severe site security risk" and claimed multiple bombs were hidden inside — using security footage and internet records from the morning of Nov. 13.

Cameras captured Kozak arriving at a Peoria grocery store just before 9:45 a.m., prosecutors said. Nearly 15 minutes later, someone on the store's public Wi-Fi set up an email account under the name "Jake Armitage" — an alias Kozak's wife reportedly told FBI agents he had previously used on Facebook.

The threat went out at 10:16 a.m., two minutes before cameras showed Kozak walking inside the store wearing a sweatshirt from an old job. A license plate camera captured his vehicle leaving the lot after he checked out at 10:31 a.m.

Investigators also traced activity on the email account back to an internet address at Kozak's Chillicothe home, prosecutors said.

Bill Daly, a former FBI investigator and international security expert who worked on the 1993 World Trade Center bombing, told Fox News Digital that the case stands out because bombers trying to cause mass casualties rarely warn targets ahead of time.

"Normally they wouldn't be calling in a bomb threat," Daly said, noting that investigators will examine whether the sender was trying to "be kind of the hero of the day" by pointing out security gaps or whether another workplace grievance was behind the scare.

Kozak's public defenders argued in court that the batteries, tape and wiring were ordinary household items and stressed that prosecutors had not proved he built or planted the device, noting he is only charged with making threats, 25News reported. Fox News Digital reached out to the Federal Public Defender's Office for comment on the matter.

Addressing the absence of bomb-making or planting charges in the initial indictment, Daly said federal prosecutors often move quickly with threat counts to keep a suspect in custody while forensic and chemical testing continues.

"They had enough to present for the indictment, and as they get more of the information, it gives them time to pull together more of the evidence," Daly said. "It doesn't mean that what he's currently charged with may be the only charges — those charges can change and be updated as more information becomes available."

Hanna ruled that Kozak was both a danger to the public and a flight risk, pointing to his criminal record and noting his family had left the area.

Kozak, who had worked at BioUrja for about 10 months before being arrested when he showed up for work Nov. 16, pleaded not guilty on Nov. 17 to federal charges of making bomb threats and sending a threat across state lines.

He has a two-decade criminal history in Nebraska that includes burglary-related convictions across four counties and two stints in state prison between 2008 and 2014, court and corrections records reviewed by Fox News Digital show.

A pretrial hearing is set for Dec. 3 before U.S. District Judge Jonathan E. Hawley, court records show.