Add network restarting function