Updated client example.