Now the examples correspond to a new API.