Added check_replication