Added slave replication delay check, primary key to the switch check