Add server logic.