Finalized codebase for server.