Integrated sanity checks into replication script