Restructuring client to server communication.