Fixed example plugin to use the latest API.