Added getClient function)