Factored out the Google client stuff.