Eliminated race condition.