Implemented a callback option.

See #11