Changed code to support strong write consistency