Allow specifying a maximum number of loops for proxy_to