Do not require global 'client' variable. Instead scope to Sync file.