Added event dispatcher to dist