Making atomics functions