Added the final functions of the server.