Event dispatching library