Added a delay to take in account conection to the internet