Updated server-main.