Updated client.c