Put all client communication in one class