Implemeneted atomic operation