Added the getClient method