Use waits instead of sleeps.