Implemented complete API for Server.