Modified conditional write