Preparing code for the server.