Moving sleep for setting gateway.