Updated failover code syntax