Add main class and proxy.