Implement random wait to eliminate race.