Seperated server side code