A U.S. appeals court on Monday authorized the military to proceed with a controlled detonation of nearly five tons of degraded explosives at an Iowa munitions plant, overturning an attempt by environmental groups to block an emergency federal permit for the explosion. The order clears the way for the Army’s plan to destroy about 68 barrels of lead azide at the Iowa Army Ammunition Plant in Middletown, near the Iowa-Illinois border, on Wednesday. The Circuit Court of Appeals denied a request by environmental groups seeking to challenge an emergency permit from the U.S. Environmental Protection Agency authorizing the operation. “We are aware of the very real risks presented by the Army’s planned detonation of degraded lead azide deposits,” the ruling says. “However, we must recognize the reality of the situation: degraded explosives present the risk of an uncontrolled and unplanned explosion, which would occur without the benefit of the safety measures established by the Permit.” The planned explosion, originally scheduled for Nov. 20, was delayed three times amid regional concerns about possible environmental and health effects and criticism that the government did not adequately communicate potential risks to local communities. The detonation is expected to produce a plume of dust containing particles of lead, a toxic metal that can cause serious health effects, according to the Iowa Department of Health and Human Services. Breathing particles containing lead or coming into contact with lead dust deposited on surrounding surfaces could pose potential health risks, the agency said. The U.S. military has argued that the risk of the material detonating on its own has increased as temperatures drop, and that the explosive compound, stored for more than two decades, has degraded to the point that moving it is too dangerous. President Donald Trump said in a social media post on Monday that he had told the military to wait until the court weighs in. Iowa’s Democratic governor-elect Rob Sand, who takes office in January, warned that further delay could risk “a big spontaneous explosion.” In a post on he said, urging the federal government to share information with the public as soon as possible.