Added a little network checking to the scripts