Adding server logic