Isn't `client` unused here and in line 137 and 147?