Updated Replicapool.php