Allow to use callback to extends usage of notifier.

Signed-off-by: crynobone <crynobone@gmail.com>