Adds main and proxies