Eliminate race condition.