Added some internet checks