Anyone living in Oklahoma planning to power their home using a rooftop solar panel will soon be charged a fee for the right to do that while still being connected to the local power grid.

Oklahoma Gov. Mary Fallin signed the “solar surcharge” bill into law on Monday, permitting utilities to charge an extra fee to any customer using distributed power generation, such as rooftop solar or a small wind turbine.

Distributed generation is seen in many parts of the country as a way for cities and homeowners to modernize their power system and become more resilient in the face of extreme weather, brought about in part by climate change. Rooftop solar and wind turbines generate clean energy to help to keep homes’ lights on when the power grid fails.

Oklahoma’s new law states that it is aiming to prevent the majority of utility customers from “subsidizing” those with solar panels on their homes who offset the cost of electricity and grid maintenance costs by generating their own power and feeding it onto the grid and receiving credit for the power they generate.