Make replication configurable