Added some retries if there is no internet conection