Using the Interlocked class