Adding atomic operations functions.