Callback

See in particular the new example callback_functions.py