Added load balancer handling for both backends