New callbacks feature

Closes dandelion/issues#47