Modified server code.