Set up basic server logic