Smart event wrapper.