Add support for callback function for every event