Writing the server