Callback debugging support. Fix #5