Fixed the tempo issue
Adapt the example to latest changes