Added ping strategy and fixed replicaset issues