Further edits to sync example code with client