Adding support to replicaSet on service.php