Adds server side code