Updated client example