Added logging for client.