Client sendto code updated