Modify callback plugin sample code