Examples updated to latest API version