Adding basic server side code