Add sleep between unstable calls.
Add timeouts instead of waiting forever