Very hacky implementation of network checking on startup