Updated the client side for the new communication logic.