Adds support for callbacks.
Updates documentation