Added general callback for all events