MINNEAPOLIS (AP) — The Minnesota Court of Appeals has ordered state pollution regulators to reconsider their decision to grant a permit for a mega-dairy farm, saying the regulators failed to consider greenhouse gas effects when they decided a farm in southeastern Minnesota could expand its herd.

In a ruling Monday, the judges called the Minnesota Pollution Control Agency’s decision not to conduct a full environmental review of the dairy expansion “arbitrary and capricious.” The Star Tribune reported the ruling raises the possibility that the state could start considering climate change effects when permitting large-scale dairy farms.

Daley Farms of Lewiston had been granted a permit to expand its milking operation from 1,500 to 3,000 cows, which would be considered a large operation in Minnesota.

Environmentalists argued the expansion would create more than 46 million gallons of manure each year, generating so much methane that it would become the 43rd-largest greenhouse gas emitter in the state.

“Mega-dairies and factory farms in Minnesota are significant contributors to greenhouse gas pollution, and we’re glad the Court of Appeals is forcing the MPCA to study the impact of this pollution,” Amelia Vohs, a lawyer for the Minnesota Center for Environmental Advocacy, said in a statement.

Matthew Berger, a lawyer for the Daley family, said the judges didn’t necessarily require pollution regulators to change their practices, but rather told them “to look and make a decision and explain their decision.”

“I see it as more of a procedural, minor issue,” Berger said. He said his clients haven’t decided whether they’ll as the Supreme Court to review the case.

Ben Daley said the farm is a family business that they want to pass on to the next generation.

“I am a fifth-generation dairy farmer,” Daley said. “My nieces and nephews that went to school and came back love farming; they want to continue this family business and maybe give it to their children.”