Fork of hooks adding support for callback functions and modification of the callback variables.