Make client a global variable