Added support for replication sets