Latest changes for mongodb replica set