Added support for loadbalancer middleware