Added support for atomic read-modifiy-write.