Added setPin and setClient