Different operation for set with CAS.