Added some atomic operations