Trying to catch a possible race condition.