Sync script (requires CURL)