Shares most of the same code as the method of the same name in ProxyController...