Implemented more of the server communication