Add support for callback chaining

Fixes #86