Added replication lag calculator