Various scripts related to power grid