Adding structure for communication between client and server