Make set proxies workable as a function