Add support for ReplicaSets and Mongos.