Use erg template for replication