Mostly working atomic operations