Regulation of electricity