Add network availabilty check functionality