Removed global client, and replaced with calls to utils