Implemented the server