Update client-functions.sh