Rename "client" variable

"client" may be a new reserved word for XC in the future so best to avoid it.