Reduced the chance of erroneous behavior due to a race condition