Changes for doing atomic updates on embedded documents