Change timeout and add a small sleep.