Distribution automation and control