Reinstate proxyUrl and enhance proxy to detect function