Extended example for callbacks