Added event dispatcher to dependencies.