To protect the electric power grid, timing is everything