Initial server side code.