Added Internet check to retrieving data